fix: auth screens (#2054)

This commit is contained in:
Aaryan Khandelwal 2023-09-01 17:10:06 +05:30 committed by GitHub
parent 441e83eba6
commit 54d781ef91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 69 additions and 13 deletions

View file

@ -28,8 +28,9 @@ class UserStore implements IUserStore {
}
setCurrentUser = (user: any) => {
// TODO: destructure user object
this.currentUser = user;
runInAction(() => {
this.currentUser = { ...user };
});
};
/**