Don't render faucet row in deposit modal for custom chains (#10674)

Fixes MetaMask/metamask-extension#10038
feature/default_network_editable
ryanml 4 years ago committed by GitHub
parent b50fe3184a
commit 6cfdac529f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      ui/app/components/app/modals/deposit-ether-modal/deposit-ether-modal.component.js

@ -155,7 +155,8 @@ export default class DepositEtherModal extends Component {
buttonLabel: this.context.t('viewAccount'), buttonLabel: this.context.t('viewAccount'),
onButtonClick: () => this.goToAccountDetailsModal(), onButtonClick: () => this.goToAccountDetailsModal(),
})} })}
{this.renderRow({ {networkName &&
this.renderRow({
logo: <i className="fa fa-tint fa-2x" />, logo: <i className="fa fa-tint fa-2x" />,
title: this.context.t('testFaucet'), title: this.context.t('testFaucet'),
text: this.context.t('getEtherFromFaucet', [networkName]), text: this.context.t('getEtherFromFaucet', [networkName]),

Loading…
Cancel
Save