Spaces:
Runtime error
Runtime error
isLoading => isFetching
Browse files- utils/useUser.ts +1 -1
utils/useUser.ts
CHANGED
@@ -26,7 +26,7 @@ export const useUser = () => {
|
|
26 |
|
27 |
const res = await request.clone().json().catch(() => ({}));
|
28 |
|
29 |
-
if (res.
|
30 |
remove();
|
31 |
clear();
|
32 |
return null;
|
|
|
26 |
|
27 |
const res = await request.clone().json().catch(() => ({}));
|
28 |
|
29 |
+
if (!res.ok) {
|
30 |
remove();
|
31 |
clear();
|
32 |
return null;
|