1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

Merge pull request #1004 from MetaMask/doubleRenderIssue

Dont render conf-tx if their are no txParams to show
This commit is contained in:
Dan Finlay 2017-01-16 10:12:49 -08:00 committed by GitHub
commit 15e91f823c
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -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', [