Skip to content

Commit d9665b9

Browse files
committed
fix(atoms/user): do not remove tokens if user should removed
1 parent 7620e68 commit d9665b9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/atoms/user.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Gender } from "@/types/profile";
22
import { atomWithStorage } from "jotai/utils";
3-
import { clearTokensAtom } from "@/atoms/authTokens";
43
import {
54
purchasedProfilesAtom,
65
recentlyViewedProfilesAtom,
@@ -46,7 +45,6 @@ export const viewerAtom = atomWithStorage<ViewerResponse | null>(
4645

4746
export const cleanDataAtom = atom(null, (_get, set) => {
4847
// Clear all user-related data
49-
set(clearTokensAtom);
5048
set(isFirstProfileViewAtom, true);
5149

5250
// Clear all user-related atoms

0 commit comments

Comments
 (0)