Browse Source

fix(walletBalance): was only calcing channel balance in wallet header

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
1c40075e3b
  1. 1
      app/components/Contacts/Network.scss
  2. 3
      app/components/Wallet/Wallet.js

1
app/components/Contacts/Network.scss

@ -147,6 +147,7 @@
width: calc(100% - 40px);
padding: 10px 20px;
border-top: 1px solid $darkestgrey;
background: #2D303B;
.input {
display: inline-block;

3
app/components/Wallet/Wallet.js

@ -32,8 +32,7 @@ class Wallet extends Component {
} = this.props
const { modalOpen, qrCodeType } = this.state
const usdAmount = btc.satoshisToUsd(balance.channelBalance, currentTicker.price_usd)
console.log('usdAmount: ', usdAmount)
const usdAmount = btc.satoshisToUsd((parseInt(balance.walletBalance) + parseInt(balance.channelBalance)), currentTicker.price_usd)
const changeQrCode = () => {
const qrCodeNum = this.state.qrCodeType === 1 ? 2 : 1

Loading…
Cancel
Save