From 69efd9e09d043403c987a5ab7fddd68158a1d22a Mon Sep 17 00:00:00 2001 From: Stixx Date: Fri, 6 Dec 2024 15:49:57 +0100 Subject: [PATCH] fix: clicking logo not redirecting to home --- src/components/AppBar/AppBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AppBar/AppBar.tsx b/src/components/AppBar/AppBar.tsx index a4f653e..e7f5d95 100644 --- a/src/components/AppBar/AppBar.tsx +++ b/src/components/AppBar/AppBar.tsx @@ -125,7 +125,7 @@ export const AppBar = () => { src="/logo.svg" alt="Logo" onClick={() => { - if (window.location.pathname === '/') { + if (['', '#/'].includes(window.location.hash)) { location.reload() } else { navigate('/')