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 2731bf8 commit dc7f360Copy full SHA for dc7f360
src/ReactCodeInput.js
@@ -51,11 +51,9 @@ class ReactCodeInput extends Component {
51
},
52
};
53
54
- for (let i = 0; i < Number(this.state.fields); i += 1) {
55
- if (i < 32) {
56
- const value = this.state.value[i] || '';
57
- this.state.input.push(value);
58
- }
+ for (let i = 0; i < Number(this.state.fields) && i < 32; i += 1) {
+ const value = this.state.value[i] || '';
+ this.state.input.push(value);
59
}
60
61
this.textInput = [];
0 commit comments