fix key error

pull/2113/head
bunsenstraat 3 years ago
parent 3477e6920a
commit a08a7ff0ef
  1. 2
      libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx

@ -547,7 +547,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
<div className="mb-2"> <div className="mb-2">
<label className="remixui_compilerLabel form-check-label" htmlFor="evmVersionSelector">EVM Version</label> <label className="remixui_compilerLabel form-check-label" htmlFor="evmVersionSelector">EVM Version</label>
<select value={state.evmVersion} onChange={(e) => handleEvmVersionChange(e.target.value)} className="custom-select" id="evmVersionSelector"> <select value={state.evmVersion} onChange={(e) => handleEvmVersionChange(e.target.value)} className="custom-select" id="evmVersionSelector">
{compileTabLogic.evmVersions.map((version) => (<option data-id={state.evmVersion === version ? 'selected' : ''} value={version}>{version}</option>))} {compileTabLogic.evmVersions.map((version, index) => (<option key={index} data-id={state.evmVersion === version ? 'selected' : ''} value={version}>{version}</option>))}
</select> </select>
</div> </div>
<div className="mt-3"> <div className="mt-3">

Loading…
Cancel
Save