From f7d87d29982351e3734b0069e6fa4d98f37a8460 Mon Sep 17 00:00:00 2001 From: tycrek Date: Wed, 25 Aug 2021 20:30:32 -0600 Subject: [PATCH] Fixed found `undefined` as an Identifier (JS-0127) --- setup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.js b/setup.js index 69c9849..602fa0e 100755 --- a/setup.js +++ b/setup.js @@ -206,7 +206,7 @@ function doSetup() { .blank()) // Apply old configs - .then(() => Object.entries(oldConfig).forEach(([setting, value]) => (results[setting] === undefined) && (results[setting] = value))) + .then(() => Object.entries(oldConfig).forEach(([setting, value]) => (typeof results[setting] === 'undefined') && (results[setting] = value))) // Confirm .then(() => prompt.get(confirmSchema))