From 6cc8f2b965432ddee2114cb6c777031c7f952856 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Thu, 7 Nov 2024 15:03:12 +0530 Subject: [PATCH] Mig --- .../photos/src/components/pages/gallery/PlanSelector.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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); };