From 457397c5508142e96e7159363288efb1cfeafc2e Mon Sep 17 00:00:00 2001 From: Francisco Pessano Date: Mon, 27 Dec 2021 22:56:47 -0300 Subject: [PATCH] minor bug --- script/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/index.js b/script/index.js index 17cbd3f..d45d69a 100644 --- a/script/index.js +++ b/script/index.js @@ -20,7 +20,7 @@ function main(game) { const data = localStorage.getItem('data') - if (data) { + if (typeof(data) === 'string') { const checkInputsResult = Object.values(JSON.parse(data))