aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send/gas-fee-display-v2.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/send/gas-fee-display-v2.js')
-rw-r--r--ui/app/components/send/gas-fee-display-v2.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/ui/app/components/send/gas-fee-display-v2.js b/ui/app/components/send/gas-fee-display-v2.js
index c156e4482..04a43df2f 100644
--- a/ui/app/components/send/gas-fee-display-v2.js
+++ b/ui/app/components/send/gas-fee-display-v2.js
@@ -18,6 +18,7 @@ GasFeeDisplay.prototype.render = function () {
onClick,
primaryCurrency = 'ETH',
convertedCurrency,
+ gasLoadingError,
} = this.props
return h('div.send-v2__gas-fee-display', [
@@ -31,13 +32,15 @@ GasFeeDisplay.prototype.render = function () {
convertedPrefix: '$',
readOnly: true,
})
- : h('div.currency-display', t(this.props.localeMessages, 'loading')),
+ : gasLoadingError
+ ? h('div.currency-display.currency-display--message', t(this.props.localeMessages, 'setGasPrice'))
+ : h('div.currency-display', t(this.props.localeMessages, 'loading')),
- h('button.send-v2__sliders-icon-container', {
+ h('button.sliders-icon-container', {
onClick,
- disabled: !gasTotal,
+ disabled: !gasTotal && !gasLoadingError,
}, [
- h('i.fa.fa-sliders.send-v2__sliders-icon'),
+ h('i.fa.fa-sliders.sliders-icon'),
]),
])