aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/transaction-action/transaction-action.component.js
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-08-24 07:44:38 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-08-24 07:45:28 +0800
commit342522c6cf23670f931e69ba822eedfd2d6ee252 (patch)
tree7aac360f85308b3022d6f673a5c572385854e690 /ui/app/components/transaction-action/transaction-action.component.js
parent2d76ee754b1dd2473d744ce2dba2a3501c9a149c (diff)
downloadtangerine-wallet-browser-342522c6cf23670f931e69ba822eedfd2d6ee252.tar
tangerine-wallet-browser-342522c6cf23670f931e69ba822eedfd2d6ee252.tar.gz
tangerine-wallet-browser-342522c6cf23670f931e69ba822eedfd2d6ee252.tar.bz2
tangerine-wallet-browser-342522c6cf23670f931e69ba822eedfd2d6ee252.tar.lz
tangerine-wallet-browser-342522c6cf23670f931e69ba822eedfd2d6ee252.tar.xz
tangerine-wallet-browser-342522c6cf23670f931e69ba822eedfd2d6ee252.tar.zst
tangerine-wallet-browser-342522c6cf23670f931e69ba822eedfd2d6ee252.zip
Fix naming, add eth.getCode check for actions, fix translations for statuses
Diffstat (limited to 'ui/app/components/transaction-action/transaction-action.component.js')
-rw-r--r--ui/app/components/transaction-action/transaction-action.component.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/app/components/transaction-action/transaction-action.component.js b/ui/app/components/transaction-action/transaction-action.component.js
index 9f447fe5c..81a1e96d0 100644
--- a/ui/app/components/transaction-action/transaction-action.component.js
+++ b/ui/app/components/transaction-action/transaction-action.component.js
@@ -25,7 +25,7 @@ export default class TransactionAction extends PureComponent {
this.getTransactionAction()
}
- getTransactionAction () {
+ async getTransactionAction () {
const { transactionAction } = this.state
const { transaction, methodData } = this.props
const { data, done } = methodData
@@ -34,18 +34,18 @@ export default class TransactionAction extends PureComponent {
return
}
- const actionKey = getTransactionActionKey(transaction, data)
+ const actionKey = await getTransactionActionKey(transaction, data)
const action = actionKey && this.context.tOrDefault(actionKey)
this.setState({ transactionAction: action })
}
render () {
- const { className, methodData: { isFetching } } = this.props
+ const { className, methodData: { done } } = this.props
const { transactionAction } = this.state
return (
<div className={className}>
- { (!isFetching && transactionAction) || '--' }
+ { (done && transactionAction) || '--' }
</div>
)
}