This commit is contained in:
ammarahm-ed
2021-01-20 10:31:22 +05:00
parent 6af2e5e89b
commit 50cf328c06

View File

@@ -176,9 +176,7 @@ const LoginDialog = () => {
setStatus('Logging in');
let user;
try {
console.log('LOGGING IN');
await db.user.login(email.toLowerCase(), password, true);
console.log('LOGGED IN');
user = await db.user.getUser();
if (!user) throw new Error('Email or passoword incorrect!');
setStatus('Syncing Your Data');