Web: Components: fix warning

This commit is contained in:
Viktor Fomin 2022-02-07 07:57:49 +03:00
parent 73a0dc5588
commit 27ecf41480

View File

@ -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" />}
</>
);
}