Skip to content

Commit

Permalink
Update text if plan is cancelled (#3663)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminvo authored Dec 9, 2024
1 parent 1104211 commit 510a079
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@
{{
statusIsTrial && isPurchasablePlan
? 'Trial ends'
: statusIsCanceled
? 'Cancels'
: 'Next payment due'
}}
</h3>
Expand Down Expand Up @@ -223,6 +225,9 @@ const statusIsTrial = computed(
currentPlan.value?.status === WorkspacePlanStatuses.Trial ||
!currentPlan.value?.status
)
const statusIsCanceled = computed(
() => currentPlan.value?.status === WorkspacePlanStatuses.Canceled
)
const isActivePlan = computed(
() =>
currentPlan.value &&
Expand Down

0 comments on commit 510a079

Please sign in to comment.