Commit 59fb1b93 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: checkVersion

parent 032d7c74
...@@ -102,8 +102,9 @@ export const copyToClipboard = (text) => { ...@@ -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',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment