From 03f419a49ce9f7c411e969e7fb963cf9538d6617 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Fri, 5 Feb 2021 12:46:07 -0500 Subject: [PATCH] use totalBalance for check to show empty wallet page or not --- ui/page/wallet/index.js | 4 ++-- ui/page/wallet/view.jsx | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/page/wallet/index.js b/ui/page/wallet/index.js index a5897410d..2e51e48c3 100644 --- a/ui/page/wallet/index.js +++ b/ui/page/wallet/index.js @@ -1,10 +1,10 @@ import { connect } from 'react-redux'; -import { selectBalance } from 'lbry-redux'; +import { selectTotalBalance } from 'lbry-redux'; import { doOpenModal } from 'redux/actions/app'; import Wallet from './view'; const select = state => ({ - balance: selectBalance(state), + totalBalance: selectTotalBalance(state), }); export default connect(select, { diff --git a/ui/page/wallet/view.jsx b/ui/page/wallet/view.jsx index bad237ff6..dc323c1fa 100644 --- a/ui/page/wallet/view.jsx +++ b/ui/page/wallet/view.jsx @@ -10,14 +10,14 @@ import YrblWalletEmpty from 'component/yrblWalletEmpty'; type Props = { history: { action: string, push: string => void, replace: string => void }, location: { search: string, pathname: string }, - balance: number, + totalBalance: ?number, }; const WalletPage = (props: Props) => { - const { location, balance } = props; + const { location, totalBalance } = props; const { search } = location; - const showIntro = balance === 0; - const loading = balance === undefined; + const showIntro = totalBalance === 0; + const loading = totalBalance === undefined; return (