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

Fix imageification of recipient

This commit is contained in:
Dan Finlay 2016-07-11 15:49:13 -07:00
parent 3274bb78d7
commit 66e079f1c7

View File

@ -165,12 +165,13 @@ PTXP.miniAccountPanelForRecipient = function () {
var txData = props.txData var txData = props.txData
var txParams = txData.txParams || {} var txParams = txData.txParams || {}
var isContractDeploy = !('to' in 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 it's not a contract deploy, send to the account
if (!isContractDeploy) { if (!isContractDeploy) {
return h(MiniAccountPanel, { return h(MiniAccountPanel, {
imageSeed: txParams.to, imageSeed: txParams.to,
imageifyIdenticons: props.imageifyIdenticons, imageifyIdenticons: imageify,
picOrder: 'left', picOrder: 'left',
}, [ }, [
h('span.font-small', { h('span.font-small', {
@ -187,7 +188,7 @@ PTXP.miniAccountPanelForRecipient = function () {
} else { } else {
return h(MiniAccountPanel, { return h(MiniAccountPanel, {
imageifyIdenticons: props.imageifyIdenticons, imageifyIdenticons: imageify,
picOrder: 'left', picOrder: 'left',
}, [ }, [
@ -250,4 +251,4 @@ function forwardCarrat(imageify){
) )
} }
} }