mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Redirect to home page when setup is finished
This commit is contained in:
parent
defa902184
commit
a9a74ddc14
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user