mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Improve variable name.
This commit is contained in:
parent
544166437a
commit
7eb083bd9f
@ -45,7 +45,7 @@ BuyOptions.prototype.renderModalContentOption = function (title, header, onClick
|
|||||||
|
|
||||||
BuyOptions.prototype.render = function () {
|
BuyOptions.prototype.render = function () {
|
||||||
const { network, toCoinbase, address, toFaucet } = this.props
|
const { network, toCoinbase, address, toFaucet } = this.props
|
||||||
const networkIsTest = ['3', '4', '42'].find(n => n === network)
|
const isTestNetwork = ['3', '4', '42'].find(n => n === network)
|
||||||
const networkName = networkNames[network]
|
const networkName = networkNames[network]
|
||||||
|
|
||||||
return h('div', {}, [
|
return h('div', {}, [
|
||||||
@ -62,7 +62,7 @@ BuyOptions.prototype.render = function () {
|
|||||||
|
|
||||||
h('div.buy-modal-content-options.flex-column.flex-center', {}, [
|
h('div.buy-modal-content-options.flex-column.flex-center', {}, [
|
||||||
|
|
||||||
networkIsTest
|
isTestNetwork
|
||||||
? this.renderModalContentOption(networkName, 'Test Faucet', () => toFaucet(network))
|
? this.renderModalContentOption(networkName, 'Test Faucet', () => toFaucet(network))
|
||||||
: this.renderModalContentOption('Coinbase', 'Deposit with Fiat', () => toCoinbase(address)),
|
: this.renderModalContentOption('Coinbase', 'Deposit with Fiat', () => toCoinbase(address)),
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user