aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/app.js
diff options
context:
space:
mode:
authorChi Kei Chan <chikeichan@gmail.com>2017-09-29 07:13:53 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-09-29 07:13:53 +0800
commit06292107d756f0b25805f819cd276e4b6303ccb0 (patch)
treea336439564c418556436941dfa8220d30b13a35f /ui/app/app.js
parent66ed4dfaa31be826f0d5a4a34410e34eca34d007 (diff)
downloadtangerine-wallet-browser-06292107d756f0b25805f819cd276e4b6303ccb0.tar
tangerine-wallet-browser-06292107d756f0b25805f819cd276e4b6303ccb0.tar.gz
tangerine-wallet-browser-06292107d756f0b25805f819cd276e4b6303ccb0.tar.bz2
tangerine-wallet-browser-06292107d756f0b25805f819cd276e4b6303ccb0.tar.lz
tangerine-wallet-browser-06292107d756f0b25805f819cd276e4b6303ccb0.tar.xz
tangerine-wallet-browser-06292107d756f0b25805f819cd276e4b6303ccb0.tar.zst
tangerine-wallet-browser-06292107d756f0b25805f819cd276e4b6303ccb0.zip
Always set currency to USD on app mount
Diffstat (limited to 'ui/app/app.js')
-rw-r--r--ui/app/app.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index 14e6a26e2..7468551eb 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -86,9 +86,14 @@ function mapDispatchToProps (dispatch, ownProps) {
hideSidebar: () => dispatch(actions.hideSidebar()),
showNetworkDropdown: () => dispatch(actions.showNetworkDropdown()),
hideNetworkDropdown: () => dispatch(actions.hideNetworkDropdown()),
+ setCurrentCurrencyToUSD: () => dispatch(actions.setCurrentCurrency('usd')),
}
}
+App.prototype.componentWillMount = function () {
+ this.props.setCurrentCurrencyToUSD()
+}
+
App.prototype.render = function () {
var props = this.props
const { isLoading, loadingMessage, network } = props