refactor: renew API error handler

This commit is contained in:
Tristan Yang
2022-12-19 11:41:34 +08:00
parent 6cabd1b040
commit a75f9c59b4
+2 -2
View File
@@ -91,8 +91,8 @@ export const authApi = createApi({
const { data } = await queryFulfilled; const { data } = await queryFulfilled;
dispatch(updateToken(data)); dispatch(updateToken(data));
} catch { } catch {
dispatch(resetAuthData()); // dispatch(resetAuthData());
console.log("renew token error"); console.error("renew token error");
} }
} }
}), }),