updating mfa modal layout

This commit is contained in:
Roland Osborne 2024-05-18 08:50:23 -07:00
parent 9c83347162
commit 0960c00c72
2 changed files with 3 additions and 1 deletions

View File

@ -192,11 +192,13 @@ export const MFAModal = styled.div`
font-size: 1.2rem; font-size: 1.2rem;
display: flex; display: flex;
justify-content: center; justify-content: center;
text-aling: center;
} }
.description { .description {
font-size: 1.0rem; font-size: 1.0rem;
padding-bottom: 8px; padding-bottom: 8px;
text-aling: center;
} }
.secret { .secret {

View File

@ -321,7 +321,7 @@ export function useAccountAccess() {
enableMFA: async () => { enableMFA: async () => {
if (!state.busy) { if (!state.busy) {
try { try {
updateState({ busy: true }); updateState({ busy: true, mfaSecret: null, mfaImage: null, mfaCode: '' });
const mfa = await account.actions.enableMFA(); const mfa = await account.actions.enableMFA();
updateState({ busy: false, mfaModal: true, mfaError: false, mfaSecret: mfa.secretText, mfaImage: mfa.secretImage, mfaCode: '' }); updateState({ busy: false, mfaModal: true, mfaError: false, mfaSecret: mfa.secretText, mfaImage: mfa.secretImage, mfaCode: '' });
} }