mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-27 15:22:56 +08:00
chore: remove premium check
This commit is contained in:
parent
0b5983f2cd
commit
62d1dc98ad
@ -30,19 +30,8 @@ const initialStates: UserStates = {
|
||||
const useUser = create<UserStates & UserActions>()(set => ({
|
||||
...initialStates,
|
||||
setSession: async session => {
|
||||
supabase.rpc("get_subscription_details").then(({ data }) => {
|
||||
if (data) {
|
||||
set({
|
||||
premium: data.premium,
|
||||
organization: data.orgPremium,
|
||||
premiumCancelled: !!data.cancelled,
|
||||
orgAdmin: data.orgAdmin,
|
||||
});
|
||||
}
|
||||
|
||||
gaEvent("engagement", "login");
|
||||
set({ user: session.user, isAuthenticated: true });
|
||||
});
|
||||
gaEvent("engagement", "login");
|
||||
set({ user: session.user, isAuthenticated: true });
|
||||
},
|
||||
logout: async () => {
|
||||
toast.loading("Logging out...", { id: "logout" });
|
||||
|
Loading…
x
Reference in New Issue
Block a user