Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/routes/(console)/create-organization/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
selectedPlan,
paymentMethodId,
null,
selectedCoupon.code ? selectedCoupon.code : null,
selectedCoupon?.code,
Copy link

Copilot AI May 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using selectedCoupon?.code can yield undefined when no coupon is selected, which may not match the API’s expected null value. Consider using selectedCoupon?.code ?? null to explicitly pass null in that case.

Suggested change
selectedCoupon?.code,
selectedCoupon?.code ?? null,

Copilot uses AI. Check for mistakes.

collaborators,
billingBudget,
taxId
Expand Down