Merge pull request #1004 from MetaMask/doubleRenderIssue

Dont render conf-tx if their are no txParams to show
feature/default_network_editable
Dan Finlay 8 years ago committed by GitHub
commit 15e91f823c
  1. 1
      CHANGELOG.md
  2. 6
      ui/app/conf-tx.js

@ -2,6 +2,7 @@
## Current Master
- Fix Bug where you see a empty transaction flash by on the confirm transaction view.
- Create visible difference in transaction history between a approved but not yet included in a block transaction and a transaction who has been confirmed.
- Fix memory leak in RPC Cache
- Override RPC commands eth_syncing and web3_clientVersion

@ -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