A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: fix issue where onboarding is shown to everyone
Abdullah Atta745c89ef86f1
diff --git a/apps/web/src/components/dialogs/onboarding-dialog.js b/apps/web/src/components/dialogs/onboarding-dialog.jsindex 8163ec7f7..6e68d5759 100644--- a/apps/web/src/components/dialogs/onboarding-dialog.js+++ b/apps/web/src/components/dialogs/onboarding-dialog.js@@ -40,7 +40,6 @@ import AccentItem from "../accent-item";import { useCallback, useState } from "react";import Config from "../../utils/config";import { getAllAccents } from "@notesnook/theme";-import { isTesting } from "../../utils/platform";const newUserSteps = [{@@ -124,6 +123,7 @@ const onboarding = {export function interruptedOnboarding() {for (let key in onboarding) {const index = Config.get(key, undefined);+ if (index === null || index === undefined) continue;if (index >= 0 && index < onboarding[key].length - 1) return key;}}