has to be returned

This commit is contained in:
cinderblockgames 2021-11-18 22:29:24 -05:00
parent 4ba197354e
commit 0f4923029a

View file

@ -34,8 +34,8 @@ const Select = ({
className={className}
>
{items.map(({ label, value }, index) => {
if (label === current) {(
<option
if (label === current) {
return <option
data-testid={"option-" + (testId ? testId + "-" : "") + index}
key={[label, index].join("")}
value={value.toString()}
@ -43,15 +43,15 @@ const Select = ({
>
{label}
</option>
)} else {(
<option
} else {
return <option
data-testid={"option-" + (testId ? testId + "-" : "") + index}
key={[label, index].join("")}
value={value.toString()}
>
{label}
</option>
)}
}
})}
</select>
);