From 05080d1c50edda0ab59fa9127fa471173d850dc7 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Mon, 20 Feb 2017 23:33:21 -0800 Subject: Fix UI Dev Mode for Tx Approval The state object had been changed, but our mock states for tx approval were using the old keys. Rather than try to muck about and figure out each and every change, I've re-generated a UI dev state for tx approval, which should help @zanibas on his current project. We can continue adding new dev states as needed from here. If anyone catches a state that doesn't render correctly, it's worth checking if a new snapshot doesn't solve things. Debugged by adding new debugging loggers, and I've left them in place for easier future debugging. --- ui/app/conf-tx.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui/app/conf-tx.js') diff --git a/ui/app/conf-tx.js b/ui/app/conf-tx.js index a27219576..646dbb602 100644 --- a/ui/app/conf-tx.js +++ b/ui/app/conf-tx.js @@ -47,6 +47,8 @@ ConfirmTxScreen.prototype.render = function () { var txData = unconfTxList[index] || {} var txParams = txData.params || {} var isNotification = isPopupOrNotification() === 'notification' + + log.info(`rendering a combined ${unconfTxList.length} unconf msg & txs`) if (unconfTxList.length === 0) return null return ( @@ -120,11 +122,14 @@ function currentTxView (opts) { const { txData } = opts const { txParams, msgParams } = txData + log.info('rendering current tx view') if (txParams) { // This is a pending transaction + log.debug('txParams detected, rendering pending tx') return h(PendingTx, opts) } else if (msgParams) { // This is a pending message to sign + log.debug('msgParams detected, rendering pending msg') return h(PendingMsg, opts) } } -- cgit v1.2.3