mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix confirm screen for sending ether tx with hex data (#6008)
This commit is contained in:
parent
cef4caeb61
commit
eaca9d21e6
@ -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 <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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user