Skip to content

Commit

Permalink
car
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabib committed Jan 9, 2025
1 parent b3170f7 commit f9c5405
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions frontend/src/lib/pages/Portfolio.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
let showNoNeuronsCard: boolean;
$: showNoNeuronsCard = !$authSignedInStore || totalStakedInUsd === 0;
// The Card should display a Primary Action when it is the only available option.
// This occurs when there are tokens but no stake.
let hasNoNeuronsCardAPrimaryAction: boolean;
$: hasNoNeuronsCardAPrimaryAction = !showNoTokensCard;
</script>
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/tests/lib/pages/Portfolio.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ describe("Portfolio page", () => {
const po = renderPage({ userTokensData: [token] });

expect(await po.getNoTokensCard().isPresent()).toBe(false);
// There is one token with a balance of 2$
expect(await po.getUsdValueBannerPo().getPrimaryAmount()).toBe("$2.00");
});
});
Expand All @@ -113,7 +112,6 @@ describe("Portfolio page", () => {
const po = renderPage({ tableProjects: [tableProject] });

expect(await po.getNoNeuronsCarPo().isPresent()).toBe(false);
// There is one token with a balance of 2$
expect(await po.getUsdValueBannerPo().getPrimaryAmount()).toBe("$2.00");
});

Expand Down

0 comments on commit f9c5405

Please sign in to comment.