fix: hide price when "coming soon"

This commit is contained in:
Fernando Falci 2024-04-23 10:41:33 +02:00
parent 0292e5614b
commit 88988d9708
No known key found for this signature in database
GPG Key ID: AB787B833D90361D

View File

@ -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;
} }