We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce23713 commit 14df6e1Copy full SHA for 14df6e1
src/index.tsx
@@ -147,10 +147,7 @@ const ReactInputVerificationCode = ({
147
if (pValue === '' && value.join('') === emptyValue.join('')) return;
148
149
// keep internal and external states in sync
150
- if (pValue !== value.join('')) {
151
- console.log('>>> should update');
152
- setValue(pValue.split(''));
153
- }
+ if (pValue !== value.join('')) setValue(pValue.split(''));
154
}, [pValue]);
155
156
return (
0 commit comments