fix: correctly calculate dynamic trial remaining days and fix missing trial_end in admin API

This commit is contained in:
2026-09-24 12:31:03 +05:30
parent a6db3e7c17
commit 1249da54fb
2 changed files with 2 additions and 1 deletions

View File

@@ -414,7 +414,7 @@ export default function DashboardLayout({ children }: { children: ReactNode }) {
{trialInfo.isTrialActive && (
<div className="bg-primary text-primary-foreground px-4 py-2.5 text-center text-sm font-bold flex justify-center items-center gap-2 shadow-sm shrink-0 z-30">
<span className="size-2 rounded-full bg-primary-foreground animate-pulse"></span>
{trialInfo.trialTotalDays} Days Free Trial — Day {trialInfo.trialDayNumber}
{trialInfo.trialDaysRemaining} Days Free Trial Remaining
</div>
)}