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;
display: flex;
justify-content: center;
text-aling: center;
}
.description {
font-size: 1.0rem;
padding-bottom: 8px;
text-aling: center;
}
.secret {

View File

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