зеркало из https://github.com/mozilla/fxa.git
Merge pull request #17123 from mozilla/fxa-9835
fix(emails): Dont use `session.isSessionVerified` in modal since it causes re-render
This commit is contained in:
Коммит
50b07e32f7
|
@ -67,13 +67,7 @@ export const ModalVerifySession = ({
|
|||
if (session.verified) {
|
||||
onCompleted && onCompleted();
|
||||
} else {
|
||||
let sessionVerified = false;
|
||||
sessionVerified = await session.isSessionVerified();
|
||||
if (sessionVerified) {
|
||||
onCompleted && onCompleted();
|
||||
} else {
|
||||
session.sendVerificationCode();
|
||||
}
|
||||
await session.sendVerificationCode();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче