mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-03 21:54:49 -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) return;
|
||||||
if (step !== SetupStep.Done && !SetupChecker.isRouteAllowed(router, step))
|
if (step !== SetupStep.Done && !SetupChecker.isRouteAllowed(router, step))
|
||||||
router.push(`/setup?step=${step}`);
|
router.push(`/setup?step=${step}`);
|
||||||
|
if (step === SetupStep.Done && router.route === "/setup") router.replace("/");
|
||||||
}, [router.route, step, router]);
|
}, [router.route, step, router]);
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user