aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/send.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-09-14 10:20:13 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-09-16 07:23:23 +0800
commit54bbf8d8590014b92e7857f30bdc2d8f3779431a (patch)
tree0d9a5939fad15afe90b61de390fffb5f2d9ba9cd /ui/app/send.js
parentb0f1fba2e5fbde573b46a284285985e63f1a3618 (diff)
downloadtangerine-wallet-browser-54bbf8d8590014b92e7857f30bdc2d8f3779431a.tar
tangerine-wallet-browser-54bbf8d8590014b92e7857f30bdc2d8f3779431a.tar.gz
tangerine-wallet-browser-54bbf8d8590014b92e7857f30bdc2d8f3779431a.tar.bz2
tangerine-wallet-browser-54bbf8d8590014b92e7857f30bdc2d8f3779431a.tar.lz
tangerine-wallet-browser-54bbf8d8590014b92e7857f30bdc2d8f3779431a.tar.xz
tangerine-wallet-browser-54bbf8d8590014b92e7857f30bdc2d8f3779431a.tar.zst
tangerine-wallet-browser-54bbf8d8590014b92e7857f30bdc2d8f3779431a.zip
Handle transaction totals in WEI in tx-list, send and pending.
Diffstat (limited to 'ui/app/send.js')
-rw-r--r--ui/app/send.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/app/send.js b/ui/app/send.js
index 4e7fdb705..b14c48e56 100644
--- a/ui/app/send.js
+++ b/ui/app/send.js
@@ -400,15 +400,16 @@ SendTransactionScreen.prototype.onSubmit = function (event) {
this.props.dispatch(addToAddressBook(recipient, nickname))
// TODO: need a clean way to integrate this into conversionUtil
- const sendConversionRate = this.props.currentCurrency === 'ETH'
+ const sendConversionRate = state.activeCurrency === 'ETH'
? this.props.conversionRate
: new BigNumber(1.0).div(this.props.conversionRate)
const sendAmount = conversionUtil(this.state.newTx.amount, {
fromNumericBase: 'dec',
toNumericBase: 'hex',
- fromCurrency: this.props.currentCurrency,
+ fromCurrency: state.activeCurrency,
toCurrency: 'ETH',
+ toDenomination: 'WEI',
conversionRate: sendConversionRate,
})