summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorAAGaming <aa@mail.catvibers.me>2022-07-24 11:37:38 -0400
committerAAGaming <aa@mail.catvibers.me>2022-07-24 11:37:38 -0400
commit2004bdebbfd0bc6fe4e4563e7b06d074dbf3f62a (patch)
treef36db6797a191c2341434b990b3677ff0bcd6c86 /frontend
parentc9bf8d357e81239b9fa15fefb226f1c55fcf1d8e (diff)
downloaddecky-loader-2004bdebbfd0bc6fe4e4563e7b06d074dbf3f62a.tar.gz
decky-loader-2004bdebbfd0bc6fe4e4563e7b06d074dbf3f62a.zip
fix calibration menu in controller settingsv2.0.4-2004bde-pre
Diffstat (limited to 'frontend')
-rw-r--r--frontend/src/router-hook.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend/src/router-hook.tsx b/frontend/src/router-hook.tsx
index ce0c553f..e318930e 100644
--- a/frontend/src/router-hook.tsx
+++ b/frontend/src/router-hook.tsx
@@ -41,10 +41,10 @@ class RouterHook extends Logger {
const DeckyWrapper = ({ children }: { children: ReactElement }) => {
const { routes } = useDeckyRouterState();
- const routerIndex = children.props.children[0].props.children.length - 1;
+ const routerIndex = children.props.children[0].props.children.length;
if (
- !children.props.children[0].props.children[routerIndex].length ||
- children.props.children[0].props.children !== routes.size
+ !children.props.children[0].props.children[routerIndex]?.length ||
+ children.props.children[0].props.children[routerIndex].length !== routes.size
) {
const newRouterArray: ReactElement[] = [];
routes.forEach(({ component, props }, path) => {