Skip to content

Commit

Permalink
Merge pull request #50251 from bernhardoj/fix/48208-can't-reenable-2fa
Browse files Browse the repository at this point in the history
Fix can't enable 2FA after login with active Xero connection
  • Loading branch information
Beamanator authored Mar 10, 2025
2 parents dae1d76 + 3017e3c commit 3412f90
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/settings/Security/TwoFactorAuth/CopyCodesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,10 @@ function CopyCodesPage({route}: TwoFactorAuthPageProps) {
const [error, setError] = useState('');

const [account, accountMetadata] = useOnyx(ONYXKEYS.ACCOUNT);
const [user] = useOnyx(ONYXKEYS.USER);
const [loginList] = useOnyx(ONYXKEYS.LOGIN_LIST);
const [validateCodeAction] = useOnyx(ONYXKEYS.VALIDATE_ACTION_CODE);

const isUserValidated = user?.validated;
const isUserValidated = account?.validated;
const contactMethod = account?.primaryLogin ?? '';

const loginData = useMemo(() => loginList?.[contactMethod], [loginList, contactMethod]);
Expand Down

0 comments on commit 3412f90

Please sign in to comment.