Skip to content

Commit

Permalink
Fix confirm screen for sending ether tx with hex data (#6008)
Browse files Browse the repository at this point in the history
  • Loading branch information
alextsg authored and whymarrh committed Jan 10, 2019
1 parent cef4cae commit eaca9d2
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 eaca9d2

Please sign in to comment.