Skip to content

Commit

Permalink
Add: default pool name
Browse files Browse the repository at this point in the history
  • Loading branch information
mypeaceduck committed Jul 21, 2024
1 parent e152c96 commit ebb5a8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/UI/Pool/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ export const Hero = () => {
</div>
<div className="w-auto px-3 my-auto">
<div className="">
<div className="text-3xl text-white">{metadata?.name}</div>
<div className="text-3xl text-white">
{metadata?.name || `Pool #${pool?.id}`}
</div>
<div className="mt-1">{pool && `Launched ${launchBlock}`}</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/UI/Pools/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ function Card({ pool, chain }: { pool: IPoolExtendedDetails; chain?: number }) {
href={`/pool?id=${pool.id}${chain ? `&chain=${chain}` : ``}`}
className="link decoration-dotted underline-offset-4"
>
{metadata?.name}
{metadata?.name || `Pool #${pool.id}`}
</Link>
</div>
</div>
Expand Down

0 comments on commit ebb5a8e

Please sign in to comment.