Skip to content

Commit ee74ef0

Browse files
fix(billing): don't re-throw server action error in manual transfer form
The catch block showed a toast but then re-threw the error, causing Next.js to attempt a Server Component re-render that crashed with a generic 500 error. Now the error is handled by the toast and swallowed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3fdab9f commit ee74ef0

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

app/[locale]/dashboard/admin/billing/upgrade/upgrade-page-client.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ export function UpgradePageClient({ plans, currentPlan }: UpgradePageClientProps
7878
setManualSubmitted(true)
7979
} catch (e: any) {
8080
toast.error(e.message || t('submitError'))
81-
throw e
8281
}
8382
}
8483

0 commit comments

Comments
 (0)