Skip to content

Commit 535574f

Browse files
committed
fix: 선택된 테마 리셋되도록
1 parent 3268880 commit 535574f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/lib/reactQueryProvider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { PropsWithChildren, useState } from "react";
55
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
66
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
77

8-
import { getLoginInfo, removeAccessToken } from "@/utils/localStorage";
8+
import { getLoginInfo, removeLocalStorageAll } from "@/utils/localStorage";
99
import { useIsLoggedInWrite } from "@/components/atoms/account.atom";
1010
import { useSnackBarWrite } from "@/components/atoms/snackBar.atom";
1111

@@ -57,7 +57,7 @@ export default function ReactQueryProvider({ children }: PropsWithChildren) {
5757
if (response && response.status === 401) {
5858
delete apiClient.defaults.headers.Authorization;
5959
delete apiClient.defaults.headers.common.Authorization;
60-
removeAccessToken();
60+
removeLocalStorageAll();
6161
setIsLoggedIn(false);
6262
}
6363

0 commit comments

Comments
 (0)