From 14df6e1c1da9f66b6d689e006cc42237201c38a4 Mon Sep 17 00:00:00 2001 From: ugogo Date: Sat, 19 Sep 2020 20:36:22 +0200 Subject: [PATCH] remove console.log --- src/index.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 4dc7027..cb9eae9 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -147,10 +147,7 @@ const ReactInputVerificationCode = ({ if (pValue === '' && value.join('') === emptyValue.join('')) return; // keep internal and external states in sync - if (pValue !== value.join('')) { - console.log('>>> should update'); - setValue(pValue.split('')); - } + if (pValue !== value.join('')) setValue(pValue.split('')); }, [pValue]); return (