refactor(dashboard): remove redundant comments in connectPaymentsSetup

This commit is contained in:
Aadesh Kheria 2026-06-01 14:26:28 -07:00
parent 03ed35e00a
commit c8e207283e

View File

@ -393,11 +393,6 @@ export function ProjectOnboardingWizard(props: {
}, [isRemoteDevelopmentEnvironment, persistOnboardingState, props.project.app, runWithSaving, selectedPaymentsCountry, setStatus]);
const connectPaymentsSetup = useCallback(async () => {
// Defense-in-depth: the Connect button is disabled in RDE (the primary guard
// at the JSX level). This early-return is the secondary guard so the handler
// is safe even if the button is ever engaged some other way — a future refactor
// dropping the `disabled` prop, DOM manipulation, programmatic invocation, etc.
// Mirrors the symmetric guard in deferPaymentsSetup.
if (isRemoteDevelopmentEnvironment) return;
await runWithSaving(async () => {
setPaymentsSetupAction("connect");