just defaultPath

Signed-off-by: Chris Suich <csuich2@gmail.com>
This commit is contained in:
Chris Suich
2025-06-18 12:30:10 -04:00
parent 1debf7fa35
commit ad187bde2e
@@ -67,7 +67,7 @@ export const useInitialRedirect = (defaultPath?: string) => {
const { '*': currPath = '' } = useParams();
useLayoutEffect(() => {
if (currPath === '' && defaultPath && defaultPath !== '') {
if (currPath === '' && defaultPath) {
navigate(`${location.pathname}${defaultPath}`, { replace: true });
}
}, []); // eslint-disable-line react-hooks/exhaustive-deps