We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9db041f commit 9cf9063Copy full SHA for 9cf9063
1 file changed
src/ReactCodeInput.js
@@ -29,7 +29,6 @@ class ReactCodeInput extends Component {
29
30
this.state = {
31
value,
32
- fields,
33
type,
34
input: [],
35
isValid,
@@ -51,7 +50,7 @@ class ReactCodeInput extends Component {
51
50
},
52
};
53
54
- for (let i = 0; i < Number(this.state.fields) && i < 32; i += 1) {
+ for (let i = 0; i < Number(fields) && i < 32; i += 1) {
55
const value = this.state.value[i] || '';
56
this.state.input.push(value);
57
}
0 commit comments