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 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){
)
}
}
}