diff options
author | Dan <danjm.com@gmail.com> | 2017-10-19 10:09:26 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2017-10-20 03:00:54 +0800 |
commit | 332c7441b656ec82ebfba863e3feb4dbf365d67b (patch) | |
tree | 2ea0aece624fe6df97924c38a739efb302fffe79 /ui/app/app.js | |
parent | 59015cccef72210f828b344aaedde9b8dd31be3b (diff) | |
download | tangerine-wallet-browser-332c7441b656ec82ebfba863e3feb4dbf365d67b.tar.gz tangerine-wallet-browser-332c7441b656ec82ebfba863e3feb4dbf365d67b.tar.zst tangerine-wallet-browser-332c7441b656ec82ebfba863e3feb4dbf365d67b.zip |
Get currency from state in account details, send and confirm screens.
Diffstat (limited to 'ui/app/app.js')
-rw-r--r-- | ui/app/app.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/app/app.js b/ui/app/app.js index 76cf1bae1..de6a06a58 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -76,6 +76,7 @@ function mapStateToProps (state) { lastUnreadNotice: state.metamask.lastUnreadNotice, lostAccounts: state.metamask.lostAccounts, frequentRpcList: state.metamask.frequentRpcList || [], + currentCurrency: state.metamask.currentCurrency, // state needed to get account dropdown temporarily rendering from app bar identities, @@ -96,7 +97,9 @@ function mapDispatchToProps (dispatch, ownProps) { } App.prototype.componentWillMount = function () { - this.props.setCurrentCurrencyToUSD() + if (!this.props.currentCurrency) { + this.props.setCurrentCurrencyToUSD() + } } App.prototype.render = function () { |