mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Don't render faucet row in deposit modal for custom chains (#10674)
Fixes MetaMask/metamask-extension#10038
This commit is contained in:
parent
b50fe3184a
commit
6cfdac529f
@ -155,14 +155,15 @@ export default class DepositEtherModal extends Component {
|
||||
buttonLabel: this.context.t('viewAccount'),
|
||||
onButtonClick: () => this.goToAccountDetailsModal(),
|
||||
})}
|
||||
{this.renderRow({
|
||||
logo: <i className="fa fa-tint fa-2x" />,
|
||||
title: this.context.t('testFaucet'),
|
||||
text: this.context.t('getEtherFromFaucet', [networkName]),
|
||||
buttonLabel: this.context.t('getEther'),
|
||||
onButtonClick: () => toFaucet(chainId),
|
||||
hide: !isTestnet,
|
||||
})}
|
||||
{networkName &&
|
||||
this.renderRow({
|
||||
logo: <i className="fa fa-tint fa-2x" />,
|
||||
title: this.context.t('testFaucet'),
|
||||
text: this.context.t('getEtherFromFaucet', [networkName]),
|
||||
buttonLabel: this.context.t('getEther'),
|
||||
onButtonClick: () => toFaucet(chainId),
|
||||
hide: !isTestnet,
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user