Skip to content

Commit 0145940

Browse files
committed
feat: add debug logs
1 parent c2ec8cb commit 0145940

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,19 @@ const ReactInputVerificationCode = ({
135135
return;
136136
}
137137

138+
console.log('RIVC: onInputChange:value', value);
139+
138140
/**
139141
* otp code
140142
*/
141143
if (value.length > 1) {
144+
console.log('RIVC: isOtp');
145+
146+
console.log('RIVC: fillValues(eventValue)', fillValues(eventValue));
142147
setValues(fillValues(eventValue));
143148

144149
const isCompleted = eventValue.length === length;
150+
console.log('RIVC isCompleted', isCompleted);
145151

146152
if (isCompleted) {
147153
onCompleted(eventValue);

0 commit comments

Comments
 (0)