From b5547cf03f03a3f2eb03725972f70702e09bea92 Mon Sep 17 00:00:00 2001 From: Mohab Yaser Date: Wed, 15 Nov 2023 20:50:50 +0200 Subject: [PATCH] Fixed some bugs --- main.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index cca4ef1..aed32e7 100644 --- a/main.js +++ b/main.js @@ -159,10 +159,11 @@ function load_from_local_storage() { problems_cnt.value = localStorage.getItem('problems_cnt'); let handles = localStorage.getItem('handles').trim().split(','); - console.log(handles); - for (let i = 0; i < handles.length; i++) { - add_handle(handles[i]); + if (handles.length > 1) { + for (let i = 0; i < handles.length; i++) { + add_handle(handles[i]); + } } }