From a75f9c59b48941dff0a57ba47e4da0331b51a0af Mon Sep 17 00:00:00 2001 From: Tristan Yang Date: Mon, 19 Dec 2022 11:41:34 +0800 Subject: [PATCH] refactor: renew API error handler --- src/app/services/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/services/auth.ts b/src/app/services/auth.ts index 812e812d..8416dc32 100644 --- a/src/app/services/auth.ts +++ b/src/app/services/auth.ts @@ -91,8 +91,8 @@ export const authApi = createApi({ const { data } = await queryFulfilled; dispatch(updateToken(data)); } catch { - dispatch(resetAuthData()); - console.log("renew token error"); + // dispatch(resetAuthData()); + console.error("renew token error"); } } }),