aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChi Kei Chan <chikeichan@gmail.com>2017-10-11 05:36:13 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-10-11 05:36:13 +0800
commitd4343fe7e57de1652d1401f70bf4c0c823d53820 (patch)
tree75a2f4b017ac513894dbcf6fbdbec68f87268c3e
parentc221f5ce79a1e24df4672e16bda8e85c434e11ba (diff)
downloadtangerine-wallet-browser-d4343fe7e57de1652d1401f70bf4c0c823d53820.tar
tangerine-wallet-browser-d4343fe7e57de1652d1401f70bf4c0c823d53820.tar.gz
tangerine-wallet-browser-d4343fe7e57de1652d1401f70bf4c0c823d53820.tar.bz2
tangerine-wallet-browser-d4343fe7e57de1652d1401f70bf4c0c823d53820.tar.lz
tangerine-wallet-browser-d4343fe7e57de1652d1401f70bf4c0c823d53820.tar.xz
tangerine-wallet-browser-d4343fe7e57de1652d1401f70bf4c0c823d53820.tar.zst
tangerine-wallet-browser-d4343fe7e57de1652d1401f70bf4c0c823d53820.zip
Fix recipient on send token
-rw-r--r--ui/app/components/pending-tx/confirm-send-token.js6
-rw-r--r--ui/app/css/itcss/components/confirm.scss1
2 files changed, 5 insertions, 2 deletions
diff --git a/ui/app/components/pending-tx/confirm-send-token.js b/ui/app/components/pending-tx/confirm-send-token.js
index d6ff5a5af..92bba8f62 100644
--- a/ui/app/components/pending-tx/confirm-send-token.js
+++ b/ui/app/components/pending-tx/confirm-send-token.js
@@ -125,7 +125,9 @@ ConfirmSendToken.prototype.getGasFee = function () {
}
ConfirmSendToken.prototype.getData = function () {
- const { identities } = this.props
+ const { identities, tokenData } = this.props
+ const { params = [] } = tokenData
+ const { value } = params[0] || {}
const txMeta = this.gatherTxMeta()
const txParams = txMeta.txParams || {}
@@ -136,7 +138,7 @@ ConfirmSendToken.prototype.getData = function () {
},
to: {
address: txParams.to,
- name: identities[txParams.to] ? identities[txParams.to].name : 'New Recipient',
+ name: identities[value] ? identities[value].name : 'New Recipient',
},
memo: txParams.memo || '',
}
diff --git a/ui/app/css/itcss/components/confirm.scss b/ui/app/css/itcss/components/confirm.scss
index 643747e36..5b89c3eaf 100644
--- a/ui/app/css/itcss/components/confirm.scss
+++ b/ui/app/css/itcss/components/confirm.scss
@@ -107,6 +107,7 @@
.confirm-screen-account-wrapper {
display: flex;
flex-direction: column;
+ align-items: center;
}
.confirm-screen-account-name {