mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
fix sign up not completing because it's waiting for the password
This commit is contained in:
parent
20deb3825b
commit
78f2df0022
2 changed files with 4 additions and 2 deletions
|
@ -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
|
// 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 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
|
// Sign out if they click the "x" when they are on the password prompt
|
||||||
const authHeaderAction = syncError ? { onClick: signOut } : { navigate: '/' };
|
const authHeaderAction = syncError ? { onClick: signOut } : { navigate: '/' };
|
||||||
|
@ -204,7 +205,7 @@ const Header = (props: Props) => {
|
||||||
)
|
)
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{!authenticated && (
|
{!authenticated && !isAuthPage && (
|
||||||
<Button
|
<Button
|
||||||
button="primary"
|
button="primary"
|
||||||
label={__('Sign In')}
|
label={__('Sign In')}
|
||||||
|
|
|
@ -78,7 +78,8 @@ export const getSavedPassword = () => {
|
||||||
if (sessionPassword) {
|
if (sessionPassword) {
|
||||||
resolve(sessionPassword);
|
resolve(sessionPassword);
|
||||||
}
|
}
|
||||||
return getKeychainPassword().then(p => p);
|
|
||||||
|
return getKeychainPassword().then(p => resolve(p));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue