Skip to content

Commit 0ccb185

Browse files
committed
fix : 로그아웃에 실패해도 토큰은 지우게
1 parent 7432e3e commit 0ccb185

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/@user/services/mutation.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { logout } from "./api.service";
66
export const useLogoutMutation = () => {
77
const queryClient = useQueryClient();
88
return useMutation(logout, {
9-
onSuccess: () => {
9+
onSettled: () => {
1010
queryClient.invalidateQueries([KEY.USER]);
1111
Storage.delItem("TOKEN:ACCESS");
1212
Storage.delItem("TOKEN:REFRESH");

src/assets/icons/ArrowIcon.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@ const ArrowIcon = ({
3434

3535
const StyledSVG = styled.svg`
3636
cursor: pointer;
37-
`
37+
`;
38+
3839
export default ArrowIcon;

0 commit comments

Comments
 (0)