From d01752e5f7bed7b76d364b8c2c39d3c432a5be14 Mon Sep 17 00:00:00 2001 From: Nikolaj Frey Date: Wed, 23 Aug 2023 08:11:36 +1000 Subject: [PATCH] feat: feature/mvp-sprint-1 --- remix/app/hooks/usePath.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/remix/app/hooks/usePath.tsx b/remix/app/hooks/usePath.tsx index 429b9a7..5422731 100644 --- a/remix/app/hooks/usePath.tsx +++ b/remix/app/hooks/usePath.tsx @@ -32,9 +32,13 @@ export const usePath = (props?: any) => { set = true } }) - // if (!set) { - // setMode("things") - // } + if (!set) { + setMode((mode) => { + if (!mode) { + return "things" + } + }) + } }, [pathname, modes]) const changePath = React.useCallback(