Skip to content

Commit 14df6e1

Browse files
author
ugogo
committed
remove console.log
1 parent ce23713 commit 14df6e1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,7 @@ const ReactInputVerificationCode = ({
147147
if (pValue === '' && value.join('') === emptyValue.join('')) return;
148148

149149
// keep internal and external states in sync
150-
if (pValue !== value.join('')) {
151-
console.log('>>> should update');
152-
setValue(pValue.split(''));
153-
}
150+
if (pValue !== value.join('')) setValue(pValue.split(''));
154151
}, [pValue]);
155152

156153
return (

0 commit comments

Comments
 (0)