Skip to content

Commit e475b40

Browse files
chore: wip
1 parent ef2d006 commit e475b40

File tree

1 file changed

+7
-4
lines changed
  • resources/views/dashboard/components/billing

1 file changed

+7
-4
lines changed

resources/views/dashboard/components/billing/plans.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,18 @@ const perText = computed(() => {
2929
if (checkedPlanType.value === 'annually')
3030
return '/year'
3131
32-
return '/lifetime'
32+
if (checkedPlanType.value === 'lifetime')
33+
return '/forever'
34+
35+
return '/month'
3336
})
3437
3538
const currentPlanType = computed(() => {
3639
return paymentStore.getCurrentPlan.subscription?.type
3740
})
3841
39-
const currentPlanKey = computed(() => {
40-
return paymentStore.getCurrentPlan.subscription?.provider_price_key
42+
const interval = computed(() => {
43+
return paymentStore.getCurrentPlan.providerSubscription?.plan?.interval || ''
4144
})
4245
4346
const planDescription = computed(() => {
@@ -48,7 +51,7 @@ const planDescription = computed(() => {
4851
})
4952
5053
function currentPlanSelected(type: string): boolean {
51-
return currentPlanType.value === type && checkedPlanType.value === currentPlanKey.value
54+
return currentPlanType.value === type && perText.value === `/${interval.value}`
5255
}
5356
5457
const hobbyPrice = computed(() => {

0 commit comments

Comments
 (0)