From 8574ec3a0c9916e39051248fddb4e6e9300a8584 Mon Sep 17 00:00:00 2001 From: Ajay Date: Wed, 7 Feb 2024 22:28:28 -0500 Subject: [PATCH] Fix is number check --- src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index c51fd0b9..1c714940 100644 --- a/src/config.ts +++ b/src/config.ts @@ -239,7 +239,7 @@ function loadFromEnv(config: SBSConfig, prefix = "") { loadFromEnv(data, fullKey); } else if (process.env[fullKey]) { const value = process.env[fullKey]; - if (isNumber(value)) { + if (value !== "" && !isNaN(value as unknown as number)) { config[key] = parseFloat(value); } else if (value.toLowerCase() === "true" || value.toLowerCase() === "false") { config[key] = value === "true";