mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-05-02 16:16:41 +07:00
fixed user hydration
This commit is contained in:
parent
ed9694c246
commit
75dc20ca0b
13 changed files with 194 additions and 95 deletions
src/store/auth
|
@ -9,6 +9,7 @@ export class AuthStore {
|
|||
token: string = '';
|
||||
user: IUser = EMPTY_USER;
|
||||
isTesterInternal: boolean = false;
|
||||
fetched = false;
|
||||
|
||||
constructor() {
|
||||
makeAutoObservable(this);
|
||||
|
@ -46,4 +47,8 @@ export class AuthStore {
|
|||
this.token = '';
|
||||
this.setUser(EMPTY_USER);
|
||||
};
|
||||
|
||||
setFetched = (fetched: boolean) => {
|
||||
this.fetched = fetched;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue