diff options
| author | AAGaming <aa@mail.catvibers.me> | 2022-07-24 11:37:38 -0400 |
|---|---|---|
| committer | AAGaming <aa@mail.catvibers.me> | 2022-07-24 11:37:38 -0400 |
| commit | 2004bdebbfd0bc6fe4e4563e7b06d074dbf3f62a (patch) | |
| tree | f36db6797a191c2341434b990b3677ff0bcd6c86 | |
| parent | c9bf8d357e81239b9fa15fefb226f1c55fcf1d8e (diff) | |
| download | decky-loader-2.0.4-2004bde-pre.tar.gz decky-loader-2.0.4-2004bde-pre.zip | |
fix calibration menu in controller settingsv2.0.4-2004bde-pre
| -rw-r--r-- | frontend/src/router-hook.tsx | 6 |
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) => { |
