Skip to content

Commit

Permalink
Update frontend/src/components/Breadcrumbs.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
reneaaron authored Jul 5, 2024
1 parent c4420e6 commit 05c4119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function Breadcrumbs() {
// Remove the last item if it's an index route to prevent e.g. Wallet > Wallet
const filteredCrumbs = isIndexRoute ? crumbs.slice(0, -1) : crumbs;

// Don't render anything if there is only one item
// Skip rendering for breadcrumbs consisting of 2 (or less) items
if (filteredCrumbs.length < 3) {
return null;
}
Expand Down

0 comments on commit 05c4119

Please sign in to comment.