fix sign up not completing because it's waiting for the password

This commit is contained in:
Sean Yesmunt 2019-12-20 19:07:59 -05:00
parent 20deb3825b
commit 78f2df0022
2 changed files with 4 additions and 2 deletions

View file

@ -48,6 +48,7 @@ const Header = (props: Props) => {
// on the verify page don't let anyone escape other than by closing the tab to keep session data consistent
const isVerifyPage = history.location.pathname.includes(PAGES.AUTH_VERIFY);
const isAuthPage = history.location.pathname.includes(PAGES.AUTH);
// Sign out if they click the "x" when they are on the password prompt
const authHeaderAction = syncError ? { onClick: signOut } : { navigate: '/' };
@ -204,7 +205,7 @@ const Header = (props: Props) => {
)
)}
{!authenticated && (
{!authenticated && !isAuthPage && (
<Button
button="primary"
label={__('Sign In')}

View file

@ -78,7 +78,8 @@ export const getSavedPassword = () => {
if (sessionPassword) {
resolve(sessionPassword);
}
return getKeychainPassword().then(p => p);
return getKeychainPassword().then(p => resolve(p));
});
};