Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

refactor: enable full pro mode during development

thecodrr810100efb191
diff --git a/apps/web/src/app-effects.js b/apps/web/src/app-effects.js
index adc58c1f9..229d896c4 100644
--- a/apps/web/src/app-effects.js
+++ b/apps/web/src/app-effects.js
@@ -55,7 +55,6 @@ function AppEffects({ isMobile, isTablet, setShow }) {
useEffect(() => {
EV.subscribe(EVENTS.userCheckStatus, async (type) => {
- if (process.env.REACT_APP_CI) return { type, result: true };
if (isUserPremium()) {
return { type, result: true };
} else {
diff --git a/apps/web/src/common/index.js b/apps/web/src/common/index.js
index f9e226f0e..41c8fa0d0 100644
--- a/apps/web/src/common/index.js
+++ b/apps/web/src/common/index.js
@@ -99,6 +99,8 @@ export async function createBackup() {
}
export function isUserPremium() {
+ if (process.env.REACT_APP_CI) return true;
+
const subStatus = userstore.get().user?.subscription?.type;
return (
subStatus === SUBSCRIPTION_STATUS.BETA ||