Skip to content

Commit

Permalink
fix: remove create_payment from signups payload if value is false
Browse files Browse the repository at this point in the history
  • Loading branch information
jorilindell committed Feb 8, 2024
1 parent 0586281 commit 96982c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/domain/signup/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,10 @@ export const getCreateSignupsPayload = ({
formValues,
signupData,
}),
create_payment: createPayment,
...(featureFlagUtils.isFeatureEnabled('WEB_STORE_INTEGRATION') &&
createPayment
? { create_payment: createPayment }
: {}),
contact_person: getContactPersonPayload(contactPerson),
}));

Expand Down

0 comments on commit 96982c4

Please sign in to comment.