Skip to content

Commit

Permalink
fix(market): handle buggy sales (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
gershon authored Nov 20, 2024
1 parent 8e8a04f commit e18e7c2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/ui/src/price-tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { cn, ellipsableStyles } from ".";
import { Ethereum, Starknet } from "./icons";

interface PriceTagProps {
price: string;
currency: {
price?: string;
currency?: {
contract: string;
symbol: string;
decimals: number;
Expand All @@ -29,6 +29,10 @@ export function PriceTag({
price,
currency,
}: PropsWithClassName<PriceTagProps>) {
if (!price || !currency) {
return null;
}

const formattedPrice = formatUnits(BigInt(price), currency.decimals);

return (
Expand Down

0 comments on commit e18e7c2

Please sign in to comment.