If the subscrition is unlimited, do not provide the link

This commit is contained in:
Joao Ramos
2024-03-19 18:57:10 +00:00
parent 65485a0d1f
commit 2667891bdd

View File

@@ -84,7 +84,7 @@ export default function Navbar({user, path, navDisabled = false, focusMode = fal
{showExpirationDate() && ( {showExpirationDate() && (
<Link <Link
href={disablePaymentPage ? "/payment" : ""} href={user.subscriptionExpirationDate && disablePaymentPage ? "/payment" : ""}
data-tip="Expiry date" data-tip="Expiry date"
className={clsx( className={clsx(
"flex w-fit cursor-pointer justify-center rounded-full border px-6 py-2 text-sm font-normal focus:outline-none", "flex w-fit cursor-pointer justify-center rounded-full border px-6 py-2 text-sm font-normal focus:outline-none",