Fix resetting onboarding from settings in web after #6564 (#6675)

Fix resetting onboarding in web after #6564

Oversight on my part while refactoring the onboarding system in #6564.
The new centralized `acceptOnboarding` workflow constructs a relative
path, so we have to get out of the settings before invoking it.
This commit is contained in:
Frank Noirot
2025-05-02 16:48:38 -04:00
committed by GitHub
parent e65a6b6a38
commit 75916d4300

View File

@ -74,6 +74,11 @@ export const AllSettingsFields = forwardRef(
codeManager,
kclManager,
}
// We need to navigate out of settings before accepting onboarding
// in the web
if (!isDesktop()) {
navigate('..')
}
acceptOnboarding(props).catch((reason) =>
catchOnboardingWarnError(reason, props)
)