зеркало из 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) {
|
if (session.verified) {
|
||||||
onCompleted && onCompleted();
|
onCompleted && onCompleted();
|
||||||
} else {
|
} else {
|
||||||
let sessionVerified = false;
|
await session.sendVerificationCode();
|
||||||
sessionVerified = await session.isSessionVerified();
|
|
||||||
if (sessionVerified) {
|
|
||||||
onCompleted && onCompleted();
|
|
||||||
} else {
|
|
||||||
session.sendVerificationCode();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче