diff options
author | Frankie <frankie.diamond@gmail.com> | 2017-01-15 14:59:05 +0800 |
---|---|---|
committer | Frankie <frankie.diamond@gmail.com> | 2017-01-15 14:59:05 +0800 |
commit | 6481f9ced425a03f9b5260f5d5606c506c6dfef6 (patch) | |
tree | 23e00cd85e747588e00a4d50ffef68c4b18449fa /ui/app/conf-tx.js | |
parent | 86c0eaa5a430c1837f9ae203e3f0cadb88d0b777 (diff) | |
download | tangerine-wallet-browser-6481f9ced425a03f9b5260f5d5606c506c6dfef6.tar tangerine-wallet-browser-6481f9ced425a03f9b5260f5d5606c506c6dfef6.tar.gz tangerine-wallet-browser-6481f9ced425a03f9b5260f5d5606c506c6dfef6.tar.bz2 tangerine-wallet-browser-6481f9ced425a03f9b5260f5d5606c506c6dfef6.tar.lz tangerine-wallet-browser-6481f9ced425a03f9b5260f5d5606c506c6dfef6.tar.xz tangerine-wallet-browser-6481f9ced425a03f9b5260f5d5606c506c6dfef6.tar.zst tangerine-wallet-browser-6481f9ced425a03f9b5260f5d5606c506c6dfef6.zip |
Dont render conf-tx if their are no txParams to show
Diffstat (limited to 'ui/app/conf-tx.js')
-rw-r--r-- | ui/app/conf-tx.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/app/conf-tx.js b/ui/app/conf-tx.js index 8d8285f3d..8e255a867 100644 --- a/ui/app/conf-tx.js +++ b/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', [ |