mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Dont render conf-tx if their are no txParams to show
This commit is contained in:
parent
86c0eaa5a4
commit
6481f9ced4
@ -43,9 +43,11 @@ ConfirmTxScreen.prototype.render = function () {
|
|||||||
var unconfMsgs = state.unconfMsgs
|
var unconfMsgs = state.unconfMsgs
|
||||||
var unconfTxList = txHelper(unconfTxs, unconfMsgs, network)
|
var unconfTxList = txHelper(unconfTxs, unconfMsgs, network)
|
||||||
var index = state.index !== undefined ? state.index : 0
|
var index = state.index !== undefined ? state.index : 0
|
||||||
var txData = unconfTxList[index] || {txParams: {}}
|
var txData = unconfTxList[index] || {}
|
||||||
var txParams = txData.txParams || {}
|
var txParams = txData.txParams
|
||||||
var isNotification = isPopupOrNotification() === 'notification'
|
var isNotification = isPopupOrNotification() === 'notification'
|
||||||
|
if (!txParams) return null
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
||||||
h('.flex-column.flex-grow', [
|
h('.flex-column.flex-grow', [
|
||||||
|
Loading…
Reference in New Issue
Block a user