File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
resources/views/dashboard/components/billing Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,18 @@ const perText = computed(() => {
29
29
if (checkedPlanType .value === ' annually' )
30
30
return ' /year'
31
31
32
- return ' /lifetime'
32
+ if (checkedPlanType .value === ' lifetime' )
33
+ return ' /forever'
34
+
35
+ return ' /month'
33
36
})
34
37
35
38
const currentPlanType = computed (() => {
36
39
return paymentStore .getCurrentPlan .subscription ?.type
37
40
})
38
41
39
- const currentPlanKey = computed (() => {
40
- return paymentStore .getCurrentPlan .subscription ?. provider_price_key
42
+ const interval = computed (() => {
43
+ return paymentStore .getCurrentPlan .providerSubscription ?. plan ?. interval || ' '
41
44
})
42
45
43
46
const planDescription = computed (() => {
@@ -48,7 +51,7 @@ const planDescription = computed(() => {
48
51
})
49
52
50
53
function currentPlanSelected(type : string ): boolean {
51
- return currentPlanType .value === type && checkedPlanType .value === currentPlanKey .value
54
+ return currentPlanType .value === type && perText .value === ` /${ interval .value } `
52
55
}
53
56
54
57
const hobbyPrice = computed (() => {
You can’t perform that action at this time.
0 commit comments