Skip to content

Commit

Permalink
extra check for timestamp ui removal
Browse files Browse the repository at this point in the history
  • Loading branch information
JFrankfurt committed Aug 22, 2024
1 parent ad46bda commit 0e5eaaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/components/Basenames/RegistrationForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ export default function RegistrationForm() {
const usdPrice = hasResolvedUSDPrice ? formatUsdPrice(price, ethUsdPrice) : '--.--';
const nameIsFree = !hasRegisteredWithDiscount && price === 0n;

const premiumEndTimestamp = usePremiumEndDurationRemaining();
const { seconds, timestamp: premiumEndTimestamp } = usePremiumEndDurationRemaining();

const isPremiumActive = premiumPrice && premiumPrice !== 0n;
const isPremiumActive = premiumPrice && premiumPrice !== 0n && seconds !== 0n;
const mainRegistrationElementClasses = classNames(
'z-10 flex flex-col items-start justify-between gap-6 bg-[#F7F7F7] p-8 text-gray-60 shadow-xl md:flex-row md:items-center',
{
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/hooks/useActiveEthPremiumAmount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ export function usePremiumEndDurationRemaining() {
}
}, 1000);

return timeLeft;
return { seconds: launchTimeSeconds, timestamp: timeLeft };
}

0 comments on commit 0e5eaaf

Please sign in to comment.