mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 12:51:42 +03:00
Fixed login issue
This commit is contained in:
parent
0d674d97af
commit
7081accef6
@ -85,6 +85,7 @@ export const login = async (username, password, isPinCodeOpen) => {
|
||||
const updatedUserData = await getUpdatedUserData(userData, resData);
|
||||
|
||||
account.local = updatedUserData;
|
||||
account.local.avatar = avatar;
|
||||
}
|
||||
|
||||
const authData = {
|
||||
@ -94,7 +95,7 @@ export const login = async (username, password, isPinCodeOpen) => {
|
||||
await setAuthStatus(authData);
|
||||
|
||||
// Save user data to Realm DB
|
||||
await setUserData(userData);
|
||||
await setUserData(account.local);
|
||||
await updateCurrentUsername(account.name);
|
||||
return { ...account, password };
|
||||
}
|
||||
|
@ -476,6 +476,7 @@ class ApplicationContainer extends Component {
|
||||
return realmObject[0];
|
||||
}
|
||||
|
||||
dispatch(updateCurrentAccount({}));
|
||||
dispatch(activeApplication());
|
||||
dispatch(isLoginDone());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user