aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/send.js
diff options
context:
space:
mode:
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,
})