fix injected provider check

pull/4761/head
yann300 7 months ago committed by Aniket
parent ba98360413
commit 0e96e024fc
  1. 2
      libs/remix-ui/run-tab/src/lib/components/universalDappUI.tsx

@ -297,7 +297,7 @@ export function UniversalDappUI(props: UdappProps) {
<label>
<b><FormattedMessage id="udapp.balance" />:</b> {instanceBalance} ETH
</label>
{props.exEnvironment.indexOf('Injected Provider') > -1 && <i className="fas fa-edit btn btn-sm p-0" onClick={() => {props.editInstance(props.instance)}}></i>}
{props.exEnvironment && props.exEnvironment.startsWith('injected') > -1 && <i className="fas fa-edit btn btn-sm p-0" onClick={() => {props.editInstance(props.instance)}}></i>}
</div>
{ props.isPinnedContract && props.instance.pinnedAt ? (
<div className="d-flex" data-id="instanceContractPinnedAt">

Loading…
Cancel
Save