Fix missing txoList when balance is 0

799

## Issue
`TxoList` is not shown when balance is zero. A zero balance doesn't always mean zero transactions.

## Fix
Just like in other components, don't make `YrblWalletEmpty` a mutually-exclusive thing.
This commit is contained in:
infinite-persistence 2022-05-05 17:15:36 +08:00
parent 30977cae96
commit 7500f15fc2
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -64,7 +64,6 @@ const WalletPage = (props: Props) => {
} }
push(url); push(url);
} }
// @endif // @endif
const { totalBalance } = props; const { totalBalance } = props;
@ -89,22 +88,17 @@ const WalletPage = (props: Props) => {
<TabPanel> <TabPanel>
<div className="section card-stack"> <div className="section card-stack">
<div className="lbc-transactions"> <div className="lbc-transactions">
{/* if the transactions are loading */}
{loading && ( {loading && (
<div className="main--empty"> <div className="main--empty">
<Spinner delayed /> <Spinner delayed />
</div> </div>
)} )}
{/* when the transactions are finished loading */}
{!loading && ( {!loading && (
<> <>
{showIntro ? ( {showIntro && <YrblWalletEmpty includeWalletLink />}
<YrblWalletEmpty includeWalletLink />
) : (
<div className="card-stack"> <div className="card-stack">
<TxoList search={search} /> <TxoList search={search} />
</div> </div>
)}
</> </>
)} )}
</div> </div>