Update useAuth.ts
This commit is contained in:
parent
2ca0480e9a
commit
cd2544f38c
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ export function useBootAuth() {
|
|||
const token = await getAccessToken();
|
||||
if (!token) { setReady(true); return; }
|
||||
const me = await getMe();
|
||||
setUser(me);
|
||||
if (me) setUser(me);
|
||||
} catch {
|
||||
// ignore
|
||||
} finally {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue