From 88988d970839bd78971018a079bfeb5fb4a58181 Mon Sep 17 00:00:00 2001 From: Fernando Falci Date: Tue, 23 Apr 2024 10:41:33 +0200 Subject: [PATCH] fix: hide price when "coming soon" --- src/components/search/SearchPrice.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/search/SearchPrice.jsx b/src/components/search/SearchPrice.jsx index 5c17360..ab5c547 100644 --- a/src/components/search/SearchPrice.jsx +++ b/src/components/search/SearchPrice.jsx @@ -6,7 +6,13 @@ export const SearchPrice = ({ details }) => { return ; } - if (!details.isAvailable || details.priceInWei === 0n) { + const showPrice = + details.publicRegistrationOpen && + details.priceInWei > 0n && + details.labelValid && + details.isAvailable; + + if (!showPrice) { return null; }