fix default value

pull/5370/head
yann300 2 years ago
parent 3cdebf5e19
commit cabe613bf2
  1. 2
      libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx
  2. 1
      libs/remix-ui/run-tab/src/lib/reducers/runTab.ts

@ -229,7 +229,7 @@ export function ContractDropdownUI (props: ContractDropdownProps) {
<div className="udapp_container" data-id="contractDropdownContainer">
<div className='d-flex justify-content-between'>
<label className="udapp_settingsLabel">Contract</label>
{ Object.keys(props.contracts.contractList).length > 0 && <label data-id="udappCompiledBy" className='text-light'>Compiled by {compilationSource} </label> }
{ Object.keys(props.contracts.contractList).length > 0 && compilationSource !== '' && <label data-id="udappCompiledBy" className='text-light'>Compiled by {compilationSource} </label> }
</div>
<div className="udapp_subcontainer">
<select ref={contractsRef} value={currentContract} onChange={handleContractChange} className="udapp_contractNames custom-select" disabled={contractOptions.disabled} title={contractOptions.title} style={{ display: loadType === 'abi' && !isContractFile(currentFile) ? 'none' : 'block' }}>

@ -157,6 +157,7 @@ export const runTabInitialState: RunTabState = {
contractList: {},
deployOptions: {} as any,
proxyKey: '',
compilationSource: '',
loadType: 'other',
currentFile: '',
currentContract: '',

Loading…
Cancel
Save