temp: fix balance issue

This commit is contained in:
Isaac Visintainer 2021-04-07 10:10:39 -07:00 committed by ixv
parent da7fe35a60
commit 4066f21ec1

View File

@ -37,13 +37,14 @@ export default class Balance extends Component {
CAD: 70000,
BTC: 1,
},
denomination: "CAD",
denomination: "USD",
}
}
render() {
const sats = this.props.state.wallet.balance || 0;
const sats = (this.props.state.wallet) ?
(this.props.state.wallet.balance || 0) : 0;
const value = currencyFormat(sats, this.state.conversion, this.state.denomination);
return (