Skip to content

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

fix: welcome to new version dialog showing on each startup

thecodrrb21fbcaa8851
diff --git a/apps/web/src/utils/useVersion.js b/apps/web/src/utils/useVersion.js
index 52501efd7..f4be95294 100644
--- a/apps/web/src/utils/useVersion.js
+++ b/apps/web/src/utils/useVersion.js
@@ -69,6 +69,9 @@ export async function getVersion() {
changelog: !changelog ? undefined : changelog,
fetched: true,
};
+ if (CACHED_VERSION.appUpdated) {
+ config.set("app_version", CACHED_VERSION);
+ }
return CACHED_VERSION;
} catch (e) {
console.error(e);