Skip to content

armgit / ente

Public Imported from GitHub
0

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

Mig

Manav Rathi6cc8f2b96543
diff --git a/web/apps/photos/src/components/pages/gallery/PlanSelector.tsx b/web/apps/photos/src/components/pages/gallery/PlanSelector.tsx
index cdf847647b..9d4c538bc3 100644
--- a/web/apps/photos/src/components/pages/gallery/PlanSelector.tsx
+++ b/web/apps/photos/src/components/pages/gallery/PlanSelector.tsx
@@ -693,19 +693,14 @@ function ManageSubscription({
closeModal,
setLoading,
}: ManageSubscriptionProps) {
- const { setDialogMessage } = useContext(AppContext);
+ const { onGenericError } = useAppContext();
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("generic_error_retry"),
- close: { variant: "critical" },
- });
+ onGenericError(e);
}
setLoading(false);
};