From 8f6993acdb7c180013eaeb433bb7fb6ec8513ed5 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Mon, 22 May 2023 10:05:30 +0100 Subject: [PATCH] remove unnecessary setInput call in the onFocus event handler --- src/components/MagicCodeInput.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/MagicCodeInput.js b/src/components/MagicCodeInput.js index 249cd938889..e1d41925a95 100644 --- a/src/components/MagicCodeInput.js +++ b/src/components/MagicCodeInput.js @@ -163,7 +163,6 @@ function MagicCodeInput(props) { */ const onFocus = (event) => { event.preventDefault(); - setInput(''); }; /**