Skip to content

Commit

Permalink
chore: correct lending-portfolio
Browse files Browse the repository at this point in the history
  • Loading branch information
borcherd authored and k0beLeenders committed Feb 14, 2025
1 parent 73d035f commit d70f855
Showing 1 changed file with 2 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,26 +236,8 @@ export const LendingPortfolio = () => {
return <WalletButton />;
}

// if (isLoading) {
// return <Loader label={connected ? "Loading positions" : "Loading"} />;
// }

if (isStoreInitialized && connected && !hasMultipleAccount) {
if (!lendingBanks.length && !borrowingBanks.length) {
return (
<div className="flex flex-col items-center justify-center gap-4">
<p className="text-center mt-4 text-muted-foreground">
You do not have any open positions.
<br className="md:hidden" />{" "}
<Link href="/" className="border-b border-muted-foreground transition-colors hover:border-transparent">
Explore the pools
</Link>{" "}
and make your first deposit
{hasMultipleAccount && " or select a different account from the dropdown below"}.
</p>
</div>
);
}
if (isLoading) {
return <Loader label={connected ? "Loading positions" : "Loading"} />;
}

if (isStoreInitialized && connected && !hasMultipleAccount) {
Expand Down

0 comments on commit d70f855

Please sign in to comment.