ensure close button always does something on authPage
This commit is contained in:
parent
3f32f5a0ca
commit
d434e62673
1 changed files with 9 additions and 13 deletions
|
@ -100,23 +100,19 @@ const Header = (props: Props) => {
|
|||
clearEmailEntry();
|
||||
clearPasswordEntry();
|
||||
|
||||
if (isSignInPage && !emailToVerify) {
|
||||
history.goBack();
|
||||
}
|
||||
|
||||
if (isSignUpPage) {
|
||||
history.goBack();
|
||||
}
|
||||
|
||||
if (isPwdResetPage) {
|
||||
history.goBack();
|
||||
}
|
||||
|
||||
if (syncError) {
|
||||
signOut();
|
||||
}
|
||||
|
||||
history.push('/');
|
||||
if (isSignInPage && !emailToVerify) {
|
||||
history.goBack();
|
||||
} else if (isSignUpPage) {
|
||||
history.goBack();
|
||||
} else if (isPwdResetPage) {
|
||||
history.goBack();
|
||||
} else {
|
||||
history.push('/');
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue