aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/wallet
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-04-28 05:59:22 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-04-28 06:05:23 +0800
commitfeb7dfffa107211e76b87d2028b8c821e914f0d6 (patch)
tree23408fc73a58fc6e8636652092cbc52609be5072 /packages/website/ts/components/wallet
parent005e633e2a3c08b8f9de79f643795f04259604c6 (diff)
downloaddexon-0x-contracts-feb7dfffa107211e76b87d2028b8c821e914f0d6.tar.gz
dexon-0x-contracts-feb7dfffa107211e76b87d2028b8c821e914f0d6.tar.zst
dexon-0x-contracts-feb7dfffa107211e76b87d2028b8c821e914f0d6.zip
Move quote currency string into config
Diffstat (limited to 'packages/website/ts/components/wallet')
-rw-r--r--packages/website/ts/components/wallet/wallet.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/website/ts/components/wallet/wallet.tsx b/packages/website/ts/components/wallet/wallet.tsx
index 2097c0eab..33b8bbffb 100644
--- a/packages/website/ts/components/wallet/wallet.tsx
+++ b/packages/website/ts/components/wallet/wallet.tsx
@@ -526,10 +526,9 @@ export class Wallet extends React.Component<WalletProps, WalletState> {
),
);
const joinedTokenSymbols = _.keys(tokenAddressBySymbol).join(',');
- const quoteCurrency = 'USD';
const queryParams = {
fsyms: joinedTokenSymbols,
- tsyms: quoteCurrency,
+ tsyms: configs.FIAT_QUOTE_CURRENCY_SYMBOL,
};
try {
this._cryptoCompareLastFetchTimestampMs = Date.now();
@@ -542,7 +541,7 @@ export class Wallet extends React.Component<WalletProps, WalletState> {
_.get(tokenAddressBySymbol, symbol),
);
const result = _.mapValues(priceInfoByAddress, priceInfo => {
- const price = _.get(priceInfo, quoteCurrency);
+ const price = _.get(priceInfo, configs.FIAT_QUOTE_CURRENCY_SYMBOL);
const priceBigNumber = new BigNumber(price);
return priceBigNumber;
});