π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix(photos):handle-subscription-user-details-failure
Aswin Asok6e135722f950
diff --git a/web/apps/photos/src/components/sidebar/accounts/Account.tsx b/web/apps/photos/src/components/sidebar/accounts/Account.tsxindex 3f2831da44..85ff1ea553 100644--- a/web/apps/photos/src/components/sidebar/accounts/Account.tsx+++ b/web/apps/photos/src/components/sidebar/accounts/Account.tsx@@ -70,7 +70,7 @@ export const Account: React.FC<AccountProps> = ({pendingAction,onActionHandled,}) => {- const { showMiniDialog } = useBaseContext();+ const { showMiniDialog, onGenericError } = useBaseContext();const userDetails = useUserDetailsSnapshot();const [twoFactorEnabled, setTwoFactorEnabled] = useState<boolean>();const [disablingTwoFactor, setDisablingTwoFactor] = useState(false);@@ -170,8 +170,13 @@ export const Account: React.FC<AccountProps> = ({showManageMemberSubscription,onShowPlanSelector,});- })();- }, [onShowPlanSelector, showManageMemberSubscription, userDetails]);+ })().catch(onGenericError);+ }, [+ onShowPlanSelector,+ showManageMemberSubscription,+ userDetails,+ onGenericError,+ ]);const handleRecoveryKey = useCallback(async () => {if (isDesktop) {