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