Redirect to home page when setup is finished

This commit is contained in:
Zoe Roux 2024-05-26 18:32:06 +02:00
parent defa902184
commit a9a74ddc14
No known key found for this signature in database

View File

@ -145,6 +145,7 @@ const SetupChecker = () => {
if (!step) return;
if (step !== SetupStep.Done && !SetupChecker.isRouteAllowed(router, step))
router.push(`/setup?step=${step}`);
if (step === SetupStep.Done && router.route === "/setup") router.replace("/");
}, [router.route, step, router]);
return null;