Skip to content

Commit ea5dc1f

Browse files
committed
fix: reload payment methods if organization changes
This ensures the payment method input is updated to the newly selected organization's payment method after switching.
1 parent bc0baac commit ea5dc1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/routes/(console)/apply-credit/+page.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@
252252
(async () => {
253253
currentPlan = await sdk.forConsole.billing.getOrganizationPlan(selectedOrgId);
254254
})();
255+
loadPaymentMethods();
255256
}
256257
257258
// after adding a payment method, fetch the payment methods again so the input can be updated

0 commit comments

Comments
 (0)