From e9b28101292492e4aecb950410057cebeae0da73 Mon Sep 17 00:00:00 2001 From: Mike Date: Tue, 3 Dec 2024 15:02:41 +0100 Subject: [PATCH] Fix: Date in trial (#3617) --- .../frontend-2/components/settings/workspaces/Billing.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/frontend-2/components/settings/workspaces/Billing.vue b/packages/frontend-2/components/settings/workspaces/Billing.vue index b25201c5a..fcf7c4b3d 100644 --- a/packages/frontend-2/components/settings/workspaces/Billing.vue +++ b/packages/frontend-2/components/settings/workspaces/Billing.vue @@ -232,11 +232,11 @@ const seatPrice = computed(() => : seatPrices.value[WorkspacePlans.Starter][BillingInterval.Monthly] ) const nextPaymentDue = computed(() => - currentPlan.value - ? isPurchasablePlan.value + isPurchasablePlan.value + ? subscription.value?.currentBillingCycleEnd ? dayjs(subscription.value?.currentBillingCycleEnd).format('MMMM D, YYYY') - : 'Never' - : dayjs().add(30, 'days').format('MMMM D, YYYY') + : dayjs(currentPlan.value?.createdAt).add(31, 'days').format('MMMM D, YYYY') + : 'Never' ) const isAdmin = computed(() => workspace.value?.role === Roles.Workspace.Admin) const guestSeatCount = computed(() =>