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