Dont render conf-tx if their are no txParams to show

feature/default_network_editable
Frankie 8 years ago
parent 86c0eaa5a4
commit 6481f9ced4
  1. 6
      ui/app/conf-tx.js

@ -43,9 +43,11 @@ ConfirmTxScreen.prototype.render = function () {
var unconfMsgs = state.unconfMsgs
var unconfTxList = txHelper(unconfTxs, unconfMsgs, network)
var index = state.index !== undefined ? state.index : 0
var txData = unconfTxList[index] || {txParams: {}}
var txParams = txData.txParams || {}
var txData = unconfTxList[index] || {}
var txParams = txData.txParams
var isNotification = isPopupOrNotification() === 'notification'
if (!txParams) return null
return (
h('.flex-column.flex-grow', [

Loading…
Cancel
Save