ensure close button always does something on authPage

This commit is contained in:
Sean Yesmunt 2020-08-26 23:16:47 -04:00
parent 3f32f5a0ca
commit d434e62673

View file

@ -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('/');
}
},
};