From eaca9d21e602c52f7bb58a719bd3720c418d1083 Mon Sep 17 00:00:00 2001 From: Alexander Tseung Date: Thu, 10 Jan 2019 08:24:37 -0800 Subject: Fix confirm screen for sending ether tx with hex data (#6008) --- .../confirm-transaction-switch.component.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ui/app/components') diff --git a/ui/app/components/pages/confirm-transaction-switch/confirm-transaction-switch.component.js b/ui/app/components/pages/confirm-transaction-switch/confirm-transaction-switch.component.js index 76782cf6a..cf79b94bc 100644 --- a/ui/app/components/pages/confirm-transaction-switch/confirm-transaction-switch.component.js +++ b/ui/app/components/pages/confirm-transaction-switch/confirm-transaction-switch.component.js @@ -32,6 +32,7 @@ export default class ConfirmTransactionSwitch extends Component { txData, methodData: { name }, fetchingData, + isEtherTransaction, } = this.props const { id, txParams: { data } = {} } = txData @@ -44,6 +45,11 @@ export default class ConfirmTransactionSwitch extends Component { return } + if (isEtherTransaction) { + const pathname = `${CONFIRM_TRANSACTION_ROUTE}/${id}${CONFIRM_SEND_ETHER_PATH}` + return + } + if (data) { const methodName = name && name.toLowerCase() -- cgit v1.2.3