Skip to content

Commit

Permalink
Fix send ether with hex data transactions redirecting to the wrong co…
Browse files Browse the repository at this point in the history
…nfirm screen
  • Loading branch information
alextsg committed Jan 10, 2019
1 parent cef4cae commit 3dd1c4b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default class ConfirmTransactionSwitch extends Component {
txData,
methodData: { name },
fetchingData,
isEtherTransaction,
} = this.props
const { id, txParams: { data } = {} } = txData

Expand All @@ -44,6 +45,11 @@ export default class ConfirmTransactionSwitch extends Component {
return <Redirect to={{ pathname }} />
}

if (isEtherTransaction) {
const pathname = `${CONFIRM_TRANSACTION_ROUTE}/${id}${CONFIRM_SEND_ETHER_PATH}`
return <Redirect to={{ pathname }} />
}

if (data) {
const methodName = name && name.toLowerCase()

Expand Down

0 comments on commit 3dd1c4b

Please sign in to comment.