aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/modals/customize-gas/customize-gas.component.js
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-07-07 02:58:41 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-07-07 07:27:08 +0800
commita2d9c43fba49680d7553409a4f5013d3febd80e9 (patch)
tree56417ef3c675774173da49d3edfb951a3310fd5e /ui/app/components/modals/customize-gas/customize-gas.component.js
parent9cde5ab11b0670eed7baeb2f31486cb3e253bdcb (diff)
downloadtangerine-wallet-browser-a2d9c43fba49680d7553409a4f5013d3febd80e9.tar.gz
tangerine-wallet-browser-a2d9c43fba49680d7553409a4f5013d3febd80e9.tar.zst
tangerine-wallet-browser-a2d9c43fba49680d7553409a4f5013d3febd80e9.zip
Various fixes from PR comments
Diffstat (limited to 'ui/app/components/modals/customize-gas/customize-gas.component.js')
-rw-r--r--ui/app/components/modals/customize-gas/customize-gas.component.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/modals/customize-gas/customize-gas.component.js b/ui/app/components/modals/customize-gas/customize-gas.component.js
index cfaafd2b9..d17c290b6 100644
--- a/ui/app/components/modals/customize-gas/customize-gas.component.js
+++ b/ui/app/components/modals/customize-gas/customize-gas.component.js
@@ -75,7 +75,7 @@ export default class CustomizeGas extends Component {
const { t } = this.context
const { hideModal } = this.props
const { gasPrice, gasLimit } = this.state
- const { valid, errorMessage } = this.validate()
+ const { valid, errorKey } = this.validate()
return (
<div className="customize-gas">
@@ -108,7 +108,7 @@ export default class CustomizeGas extends Component {
/>
</div>
<div className="customize-gas__footer">
- { !valid && <div className="customize-gas__error-message">{ errorMessage }</div> }
+ { !valid && <div className="customize-gas__error-message">{ t(errorKey) }</div> }
<div
className="customize-gas__revert"
onClick={() => this.handleRevert()}