From 59fb1b933d1da523f6e4412cdc11d268904f19fc Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 26 Dec 2023 22:52:53 -0800 Subject: [PATCH] fix: checkVersion --- src/lib/utils/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index 4ac67003..8f7e711b 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -102,8 +102,9 @@ export const copyToClipboard = (text) => { }; export const checkVersion = (required, current) => { + // Returns true when current version is below required return current === '0.0.0' - ? true + ? false : current.localeCompare(required, undefined, { numeric: true, sensitivity: 'case',