Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Tweak

Manav Rathidc8db2869599
diff --git a/web/apps/photos/src/utils/billing/index.ts b/web/apps/photos/src/utils/billing/index.ts
index f2ffe98bbc..8738ae7d3f 100644
--- a/web/apps/photos/src/utils/billing/index.ts
+++ b/web/apps/photos/src/utils/billing/index.ts
@@ -42,13 +42,13 @@ export const planSelectionOutcome = (
// -- The user already has an active subscription to a paid plan.
- // Using stripe
+ // Using Stripe.
if (subscription.paymentProvider == "stripe") {
// Update their existing subscription to the new plan.
return "updateSubscriptionToPlan";
}
- // Using one of the mobile app stores
+ // Using one of the mobile app stores.
if (
subscription.paymentProvider == "appstore" ||
subscription.paymentProvider == "playstore"
@@ -225,7 +225,7 @@ export async function checkSubscriptionPurchase(
) {
const { session_id: sessionId, status, reason } = router.query ?? {};
- if (status === "success") {
+ if (status == "success") {
try {
const subscription = await billingService.verifySubscription(
sessionId as string,