From 8bf9eee91ec2e34e4a9848e1d0e187b3477db372 Mon Sep 17 00:00:00 2001 From: yyh Date: Wed, 10 Dec 2025 12:23:56 +0800 Subject: [PATCH] fix: maintain loading guard during async billing URL fetch Add await to openAsync call to prevent multiple concurrent requests when users rapidly click the billing button. This maintains the loading state until the billing URL is successfully fetched and opened. Addresses review feedback about regression in loading behavior --- .../components/billing/pricing/plans/cloud-plan-item/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/billing/pricing/plans/cloud-plan-item/index.tsx b/web/app/components/billing/pricing/plans/cloud-plan-item/index.tsx index 0fdf51f72e..164ad9061a 100644 --- a/web/app/components/billing/pricing/plans/cloud-plan-item/index.tsx +++ b/web/app/components/billing/pricing/plans/cloud-plan-item/index.tsx @@ -75,7 +75,7 @@ const CloudPlanItem: FC = ({ setLoading(true) try { if (isCurrentPaidPlan) { - openAsync( + await openAsync( () => fetchBillingUrl().then(res => res.url), { errorMessage: 'Failed to open billing page',