Skip to content

Commit d1b7443

Browse files
Champika SamarasingheEmperorRXF
authored andcommitted
fix: show only active payment and subscription plans
1 parent df56f8b commit d1b7443

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/scenarios/billing/SubscribeToSubscriptionPlan/graphql-documents.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ import gql from 'graphql-tag';
22

33
export const getPaymentPlansQuery = gql`
44
query GetPaymentPlans {
5-
paymentPlans {
5+
paymentPlans(
6+
filter: {
7+
subscriptionPlan: { isActive: { equalTo: true } }
8+
isActive: { equalTo: true }
9+
}
10+
) {
611
nodes {
712
id
813
subscriptionPlan {

0 commit comments

Comments
 (0)