From 66e079f1c7118e0d2ba4f194b76a7756bf783795 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Mon, 11 Jul 2016 15:49:13 -0700 Subject: Fix imageification of recipient --- ui/app/components/pending-tx-details.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ui/app/components/pending-tx-details.js') diff --git a/ui/app/components/pending-tx-details.js b/ui/app/components/pending-tx-details.js index c9d3251e1..05409cf44 100644 --- a/ui/app/components/pending-tx-details.js +++ b/ui/app/components/pending-tx-details.js @@ -165,12 +165,13 @@ PTXP.miniAccountPanelForRecipient = function () { var txData = props.txData var txParams = txData.txParams || {} var isContractDeploy = !('to' in txParams) + var imageify = props.imageifyIdenticons === undefined ? true : props.imageifyIdenticons // If it's not a contract deploy, send to the account if (!isContractDeploy) { return h(MiniAccountPanel, { imageSeed: txParams.to, - imageifyIdenticons: props.imageifyIdenticons, + imageifyIdenticons: imageify, picOrder: 'left', }, [ h('span.font-small', { @@ -187,7 +188,7 @@ PTXP.miniAccountPanelForRecipient = function () { } else { return h(MiniAccountPanel, { - imageifyIdenticons: props.imageifyIdenticons, + imageifyIdenticons: imageify, picOrder: 'left', }, [ @@ -250,4 +251,4 @@ function forwardCarrat(imageify){ ) } -} \ No newline at end of file +} -- cgit From e21a48da838401efed696d2ec0404cec93cee8ff Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Mon, 11 Jul 2016 20:53:26 -0700 Subject: Linted --- ui/app/components/pending-tx-details.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ui/app/components/pending-tx-details.js') diff --git a/ui/app/components/pending-tx-details.js b/ui/app/components/pending-tx-details.js index 05409cf44..9a06ad09e 100644 --- a/ui/app/components/pending-tx-details.js +++ b/ui/app/components/pending-tx-details.js @@ -185,7 +185,6 @@ PTXP.miniAccountPanelForRecipient = function () { }, }, addressSummary(txParams.to, 6, 4, false)), ]) - } else { return h(MiniAccountPanel, { imageifyIdenticons: imageify, @@ -225,7 +224,7 @@ PTXP.warnIfNeeded = function () { } -function forwardCarrat(imageify){ +function forwardCarrat (imageify) { if (imageify) { return ( -- cgit