File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export class __experimental_CommerceBilling implements __experimental_CommerceBi
37
37
const { orgId, ...rest } = params ;
38
38
39
39
return await BaseResource . _fetch ( {
40
- path : orgId ? `/organizations/${ orgId } /subscriptions` : `/me/subscriptions` ,
40
+ path : orgId ? `/organizations/${ orgId } /subscriptions` : `/me/commerce/ subscriptions` ,
41
41
method : 'GET' ,
42
42
search : convertPageToOffsetSearchParams ( rest ) ,
43
43
} ) . then ( res => {
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export const usePlans = (props: UsePlansProps) => {
32
32
return (
33
33
allPlans ?. map ( plan => {
34
34
const activeSubscription = subscriptions . data . find ( sub => {
35
- return sub . plan . id === plan . id ;
35
+ return sub . plan . id === plan . id && sub . status === 'active' ;
36
36
} ) ;
37
37
plan . subscriptionIdForCurrentSubscriber = activeSubscription ?. id ;
38
38
return plan ;
You can’t perform that action at this time.
0 commit comments