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:
Vyrtsev Mikhail
2019-04-20 21:24:00 +03:00
parent d1420286dd
commit 22006bee81
2 changed files with 8 additions and 2 deletions
+1
View File
@@ -133,6 +133,7 @@ export const getUser = (): Promise<User | null> =>
.get<User | null>({
url: '/user',
withCredentials: true,
logError: false,
})
.catch(() => null);