fix: hide price when "coming soon"
This commit is contained in:
parent
0292e5614b
commit
88988d9708
@ -6,7 +6,13 @@ export const SearchPrice = ({ details }) => {
|
|||||||
return <Skeleton className="w-24 h-7" />;
|
return <Skeleton className="w-24 h-7" />;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!details.isAvailable || details.priceInWei === 0n) {
|
const showPrice =
|
||||||
|
details.publicRegistrationOpen &&
|
||||||
|
details.priceInWei > 0n &&
|
||||||
|
details.labelValid &&
|
||||||
|
details.isAvailable;
|
||||||
|
|
||||||
|
if (!showPrice) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user