Browse Source

Fixes #828 - Convert version fields to int before comparing it

main
Arunprasad Rajkumar 5 years ago
committed by Eric Amodio
parent
commit
53e9cd12ee
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/extension.ts

+ 2
- 2
src/extension.ts View File

@ -177,8 +177,8 @@ async function showWelcomePage(version: string, previousVersion: string | undefi
Logger.log(`GitLens upgraded from v${previousVersion} to v${version}`);
}
const [major, minor] = version.split('.');
const [prevMajor, prevMinor] = previousVersion.split('.');
const [major, minor] = version.split('.').map(v => parseInt(v));
const [prevMajor, prevMinor] = previousVersion.split('.').map(v => parseInt(v));
if (
(major === prevMajor && minor === prevMinor) ||
// Don't notify on downgrades

Loading…
Cancel
Save