enzostvs HF staff commited on
Commit
bdc3827
1 Parent(s): a1489d3

isLoading => isFetching

Browse files
Files changed (1) hide show
  1. 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.status === 401) {
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;