add logError: boolean param to fetcher
Case for it is getUser api method. When user is not authenticated, api returns 403 error which pops up in console and have no meaning
This commit is contained in:
@@ -133,6 +133,7 @@ export const getUser = (): Promise<User | null> =>
|
||||
.get<User | null>({
|
||||
url: '/user',
|
||||
withCredentials: true,
|
||||
logError: false,
|
||||
})
|
||||
.catch(() => null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user