Web: Components: fix warning
This commit is contained in:
parent
73a0dc5588
commit
27ecf41480
@ -75,8 +75,9 @@ const CodeInput = (props) => {
|
||||
|
||||
const elements = [];
|
||||
for (let i = 0; i < characters; i++) {
|
||||
if (i === 3) elements.push(<hr key="InputCode-line" />);
|
||||
|
||||
elements.push(
|
||||
<>
|
||||
<input
|
||||
key={`InputCode-${i}`}
|
||||
onChange={handleOnChange}
|
||||
@ -87,8 +88,6 @@ const CodeInput = (props) => {
|
||||
maxLength={1}
|
||||
disabled={isDisabled}
|
||||
/>
|
||||
{i === 2 && <hr key="InputCode-line" />}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user