mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
fix change password showing on login dialog
This commit is contained in:
@@ -64,7 +64,7 @@ const LoginDialog = () => {
|
|||||||
const [failed, setFailed] = useState(false);
|
const [failed, setFailed] = useState(false);
|
||||||
const [signingIn, setSigningIn] = useState(false);
|
const [signingIn, setSigningIn] = useState(false);
|
||||||
const [userConsent, setUserConsent] = useState(false);
|
const [userConsent, setUserConsent] = useState(false);
|
||||||
const [mode, setMode] = useState(MODES.changePassword);
|
const [mode, setMode] = useState(MODES.login);
|
||||||
|
|
||||||
const _email = useRef();
|
const _email = useRef();
|
||||||
const _pass = useRef();
|
const _pass = useRef();
|
||||||
@@ -140,9 +140,9 @@ const LoginDialog = () => {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
function open(mode) {
|
function open(mode) {
|
||||||
if (mode) {
|
|
||||||
setMode(mode);
|
setMode(mode? mode : MODES.login);
|
||||||
}
|
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user