Skip to content

Commit 78cc0c9

Browse files
committed
Show the autoupdate installed toast even when we downgrade
1 parent ae127af commit 78cc0c9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/compass/src/app/index.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,15 @@ const app = {
379379
});
380380
}
381381

382+
log.info(mongoLogId(1_001_000_338), 'Main Window', 'Recent version info', {
383+
previousVersion: state.previousVersion,
384+
highestInstalledVersion: state.highestInstalledVersion,
385+
APP_VERSION,
386+
});
387+
382388
if (
383-
semver.gt(APP_VERSION, state.previousVersion) &&
384-
state.previousVersion !== DEFAULT_APP_VERSION
389+
state.previousVersion !== DEFAULT_APP_VERSION &&
390+
APP_VERSION !== state.previousVersion
385391
) {
386392
// Wait a bit before showing the update toast.
387393
setTimeout(() => {

0 commit comments

Comments
 (0)