From c82b287c8ac17091fa408a192a6419dcab6e15aa Mon Sep 17 00:00:00 2001 From: inaseem Date: Sat, 2 Oct 2021 20:34:53 +0530 Subject: [PATCH] Corrected the logic --- frontend/pages/editor/[lang].js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/pages/editor/[lang].js b/frontend/pages/editor/[lang].js index a4cf660..6d407d7 100644 --- a/frontend/pages/editor/[lang].js +++ b/frontend/pages/editor/[lang].js @@ -331,7 +331,7 @@ const CodeRunner = (props) => { }; const handleChange = () => { - if (isConnected) { + if (status != "idle") { return; } else { connect(); @@ -389,7 +389,7 @@ const CodeRunner = (props) => {