Skip to content

Commit

Permalink
fix(home): handle empty sale price (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
gershon authored Oct 8, 2024
1 parent c30631c commit aaf79eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/ui/src/price-tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export function PriceTag({
className,
price,
}: PropsWithClassName<PriceTagProps>) {
if (!price) {
return null;
}

const parsedPrice = parseFloat(formatUnits(price, 18));

return (
Expand Down

0 comments on commit aaf79eb

Please sign in to comment.