diff --git a/web/packages/accounts/pages/credentials.tsx b/web/packages/accounts/pages/credentials.tsx index dc7d9d3092..311152dac9 100644 --- a/web/packages/accounts/pages/credentials.tsx +++ b/web/packages/accounts/pages/credentials.tsx @@ -288,12 +288,14 @@ const Page: React.FC = ({ appContext }) => { // // To cover such cases, we redo the check whenever an incorrect password // is entered. + const srpAttributes: SRPAttributes = getData(LS_KEYS.SRP_ATTRIBUTES); + const user: User = getData(LS_KEYS.USER); if (srpAttributes && user?.email) { void didPasswordChangeElsewhere(user.email, srpAttributes).then( (changed) => changed && showSessionExpiredDialog(), ); } - }, [srpAttributes, user, showSessionExpiredDialog]); + }, [showSessionExpiredDialog]); if (!keyAttributes && !srpAttributes) { return (