Fix confirm screen for sending ether tx with hex data (#6008)

feature/default_network_editable
Alexander Tseung 6 years ago committed by Whymarrh Whitby
parent cef4caeb61
commit eaca9d21e6
  1. 6
      ui/app/components/pages/confirm-transaction-switch/confirm-transaction-switch.component.js

@ -32,6 +32,7 @@ export default class ConfirmTransactionSwitch extends Component {
txData, txData,
methodData: { name }, methodData: { name },
fetchingData, fetchingData,
isEtherTransaction,
} = this.props } = this.props
const { id, txParams: { data } = {} } = txData const { id, txParams: { data } = {} } = txData
@ -44,6 +45,11 @@ export default class ConfirmTransactionSwitch extends Component {
return <Redirect to={{ pathname }} /> return <Redirect to={{ pathname }} />
} }
if (isEtherTransaction) {
const pathname = `${CONFIRM_TRANSACTION_ROUTE}/${id}${CONFIRM_SEND_ETHER_PATH}`
return <Redirect to={{ pathname }} />
}
if (data) { if (data) {
const methodName = name && name.toLowerCase() const methodName = name && name.toLowerCase()

Loading…
Cancel
Save