diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2019-05-01 10:16:50 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2019-05-01 10:53:19 +0800 |
commit | e6b9b5c5a9d25b70e9656a886b6d6053f160cd39 (patch) | |
tree | b3036584a336da8fa4d4e1beced63c8b29a091e1 | |
parent | 12cfe8e543ebc0982f6dc087d28c7d56888ed666 (diff) | |
download | tangerine-wallet-browser-e6b9b5c5a9d25b70e9656a886b6d6053f160cd39.tar tangerine-wallet-browser-e6b9b5c5a9d25b70e9656a886b6d6053f160cd39.tar.gz tangerine-wallet-browser-e6b9b5c5a9d25b70e9656a886b6d6053f160cd39.tar.bz2 tangerine-wallet-browser-e6b9b5c5a9d25b70e9656a886b6d6053f160cd39.tar.lz tangerine-wallet-browser-e6b9b5c5a9d25b70e9656a886b6d6053f160cd39.tar.xz tangerine-wallet-browser-e6b9b5c5a9d25b70e9656a886b6d6053f160cd39.tar.zst tangerine-wallet-browser-e6b9b5c5a9d25b70e9656a886b6d6053f160cd39.zip |
Use tOrKey for actionKey in ConfirmTransactionBase
-rw-r--r-- | ui/app/pages/confirm-transaction-base/confirm-transaction-base.component.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/app/pages/confirm-transaction-base/confirm-transaction-base.component.js b/ui/app/pages/confirm-transaction-base/confirm-transaction-base.component.js index 678f64844..3c4e6dcac 100644 --- a/ui/app/pages/confirm-transaction-base/confirm-transaction-base.component.js +++ b/ui/app/pages/confirm-transaction-base/confirm-transaction-base.component.js @@ -18,6 +18,7 @@ import AdvancedGasInputs from '../../components/app/gas-customization/advanced-g export default class ConfirmTransactionBase extends Component { static contextTypes = { t: PropTypes.func, + tOrKey: PropTypes.func.isRequired, metricsEvent: PropTypes.func, } @@ -546,7 +547,8 @@ export default class ConfirmTransactionBase extends Component { toName={toName} toAddress={toAddress} showEdit={onEdit && !isTxReprice} - action={this.context.t(actionKey) || getMethodName(name) || this.context.t('contractInteraction')} + // In the event that the key is falsy (and inherently invalid), use a fallback string + action={this.context.tOrKey(actionKey) || getMethodName(name) || this.context.t('contractInteraction')} title={title} titleComponent={this.renderTitleComponent()} subtitle={subtitle} |