Skip to content

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

web: only show migration progress for main db

Abdullah Atta228a8e612f48
diff --git a/apps/web/src/root.tsx b/apps/web/src/root.tsx
index 0c1201680..de87d8abf 100644
--- a/apps/web/src/root.tsx
+++ b/apps/web/src/root.tsx
@@ -100,7 +100,9 @@ function RouteWrapper(props: {
const { Component, path, routeProps } = props;
useEffect(() => {
- EV.subscribe(EVENTS.migrationStarted, () => setIsMigrating(true));
+ EV.subscribe(EVENTS.migrationStarted, (name) =>
+ setIsMigrating(name === "notesnook")
+ );
EV.subscribe(EVENTS.migrationFinished, () => setIsMigrating(false));
return () => {
EV.unsubscribeAll();