fix old premium check

This commit is contained in:
AykutSarac 2023-05-23 15:35:59 +03:00
parent 21150a21c4
commit 005811bb0b
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ const useFile = create<FileStates & JsonActions>()((set, get) => ({
useJson.getState().clear(); useJson.getState().clear();
}, },
setJsonSchema: jsonSchema => { setJsonSchema: jsonSchema => {
if (useUser.getState().isPremium()) set({ jsonSchema }); if (useUser.getState().premium) set({ jsonSchema });
}, },
setFile: fileData => { setFile: fileData => {
set({ fileData }); set({ fileData });

View File

@ -35,7 +35,7 @@ const useModal = create<ModalState & ModalActions>()(set => ({
if (authModals.includes(modal) && !user.isAuthenticated) { if (authModals.includes(modal) && !user.isAuthenticated) {
return set({ login: true }); return set({ login: true });
} else if (premiumModals.includes(modal) && !user.isPremium()) { } else if (premiumModals.includes(modal) && !user.premium) {
return set({ premium: true }); return set({ premium: true });
} }