Skip to content

armgit / ente

Public Imported from GitHub
0

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

Retain the dialog

Manav Rathi9037973ced51
diff --git a/web/apps/photos/src/components/pages/gallery/PlanSelector.tsx b/web/apps/photos/src/components/pages/gallery/PlanSelector.tsx
index 2f06953af9..525da89eb7 100644
--- a/web/apps/photos/src/components/pages/gallery/PlanSelector.tsx
+++ b/web/apps/photos/src/components/pages/gallery/PlanSelector.tsx
@@ -687,12 +687,19 @@ function ManageSubscription({
closeModal,
setLoading,
}: ManageSubscriptionProps) {
+ const { setDialogMessage } = useContext(AppContext);
+
const openFamilyPortal = async () => {
setLoading(true);
try {
openURL(await getFamilyPortalRedirectURL());
} catch (e) {
log.error("Could not redirect to family portal", e);
+ setDialogMessage({
+ title: t("ERROR"),
+ content: t("UNKNOWN_ERROR"),
+ close: { variant: "critical" },
+ });
}
setLoading(false);
};