Explorar el Código

fix: checkVersion

Timothy J. Baek hace 2 años
padre
commit
59fb1b933d
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/lib/utils/index.ts

+ 2 - 1
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',