From 9b1db22da2282790e4d9794ac6a0294b7cb9efe4 Mon Sep 17 00:00:00 2001 From: priyanshu tiwari Date: Sat, 14 Oct 2023 22:42:05 +0530 Subject: [PATCH] correct the error mistakes --- src/components/Home.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Home.js b/src/components/Home.js index a1e633d..a9d51ce 100644 --- a/src/components/Home.js +++ b/src/components/Home.js @@ -31,7 +31,7 @@ function Home() { useEffect(() => { adjustWidth(); - }, [name]); + }); const adjustWidth = () => { if (flag) { @@ -42,7 +42,6 @@ function Home() { inputField.style.width = "initail"; } else { inputField.style.width = width + "ch"; - console.log(width); } } };