fix: checkVersion

This commit is contained in:
Timothy J. Baek 2023-12-26 22:52:53 -08:00
parent 032d7c7440
commit 59fb1b933d

View File

@ -102,8 +102,9 @@ export const copyToClipboard = (text) => {
}; };
export const checkVersion = (required, current) => { export const checkVersion = (required, current) => {
// Returns true when current version is below required
return current === '0.0.0' return current === '0.0.0'
? true ? false
: current.localeCompare(required, undefined, { : current.localeCompare(required, undefined, {
numeric: true, numeric: true,
sensitivity: 'case', sensitivity: 'case',