Skip to content

Commit

Permalink
remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
ugogo committed Sep 19, 2020
1 parent ce23713 commit 14df6e1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 14df6e1

Please sign in to comment.