Skip to content

armgit / ente

Public Imported from GitHub
0

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

[photos] Merge payment failure dialog cases

AswinAsok24c0ceb9085e
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index df374f67a8..5600d867b6 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -2606,22 +2606,13 @@ const handleSubscriptionCompletionRedirectIfNeeded = async (
});
break;
case "requires_payment_method":
- showMiniDialog({
- title: t("update_payment_method"),
- message: t("update_payment_method_message"),
- continue: {
- text: t("update_payment_method"),
- action: () => {
- showLoadingBar();
- return redirectToCustomerPortal();
- },
- },
- });
- break;
case "authentication_failed":
showMiniDialog({
title: t("update_payment_method"),
- message: t("payment_method_authentication_failed"),
+ message:
+ reason == "authentication_failed"
+ ? t("payment_method_authentication_failed")
+ : t("update_payment_method_message"),
continue: {
text: t("update_payment_method"),
action: () => {