fix(price): Replacing older instances of price retrieval

This commit is contained in:
Chris Troutner
2020-10-20 12:01:24 -07:00
parent 34dbc6f589
commit d82c2fd49e
3 changed files with 3 additions and 3 deletions
@@ -221,7 +221,7 @@ class Send extends React.Component {
setTimeout(async () => {
const myBalance = await bchWalletLib.getBalance()
const bchjs = bchWalletLib.bchjs
const currentRate = await bchjs.Price.current('usd')
const currentRate = await bchjs.Price.getUsd() * 100
_this.props.updateBalance({ myBalance, currentRate })
}, 1000)
+1 -1
View File
@@ -108,7 +108,7 @@ class NewWallet extends React.Component {
const myBalance = await bchWalletLib.getBalance()
const bchjs = bchWalletLib.bchjs
const currentRate = await bchjs.Price.current('usd')
const currentRate = await bchjs.Price.getUsd() * 100
// console.log("myBalance", myBalance)
// Update redux state
+1 -1
View File
@@ -148,7 +148,7 @@ class ImportWallet extends React.Component {
const myBalance = await bchWalletLib.getBalance()
const bchjs = bchWalletLib.bchjs
const currentRate = await bchjs.Price.current('usd')
const currentRate = await bchjs.Price.getUsd() * 100
// Update redux state
_this.props.setWalletInfo(currentWallet)