π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Move
Manav Rathi044c82eacca1
diff --git a/web/apps/photos/src/components/pages/gallery/PlanSelector.tsx b/web/apps/photos/src/components/pages/gallery/PlanSelector.tsxindex 5a009be8ac..81191504f5 100644--- a/web/apps/photos/src/components/pages/gallery/PlanSelector.tsx+++ b/web/apps/photos/src/components/pages/gallery/PlanSelector.tsx@@ -57,7 +57,6 @@ import {isSubscriptionActive,isSubscriptionCancelled,isUserSubscribedPlan,- planForSubscription,planSelectionOutcome,updatePaymentMethod,} from "utils/billing";@@ -152,7 +151,15 @@ function PlanSelectorCard(props: PlanSelectorCardProps) {!isOnFreePlan(subscription) &&planNotListed) {- plans.push(planForSubscription(subscription));+ plans.push({+ id: subscription.productID,+ storage: subscription.storage,+ price: subscription.price,+ period: subscription.period,+ stripeID: subscription.productID,+ iosID: subscription.productID,+ androidID: subscription.productID,+ });}}setPlansResponse(response);diff --git a/web/apps/photos/src/services/billingService.ts b/web/apps/photos/src/services/billingService.tsindex 63b274316e..d7c1fe5566 100644--- a/web/apps/photos/src/services/billingService.ts+++ b/web/apps/photos/src/services/billingService.ts@@ -20,11 +20,8 @@ const PlanPeriod = z.enum(["month", "year"]);export type PlanPeriod = z.infer<typeof PlanPeriod>;export interface Subscription {- id: number;- userID: number;productID: string;storage: number;- originalTransactionID: string;expiryTime: number;paymentProvider: string;attributes: {diff --git a/web/apps/photos/src/utils/billing/index.ts b/web/apps/photos/src/utils/billing/index.tsindex fd316a058d..5925068816 100644--- a/web/apps/photos/src/utils/billing/index.ts+++ b/web/apps/photos/src/utils/billing/index.ts@@ -319,15 +319,3 @@ function handleFailureReason(});}}--export function planForSubscription(subscription: Subscription): Plan {- return {- id: subscription.productID,- storage: subscription.storage,- price: subscription.price,- period: subscription.period,- stripeID: subscription.productID,- iosID: subscription.productID,- androidID: subscription.productID,- };-}