From f6c4a372a93d480117e2dbd8aba3fcc03612f92b Mon Sep 17 00:00:00 2001 From: Jorik Schellekens Date: Thu, 24 Sep 2020 11:30:52 +0100 Subject: [PATCH] Remove the existentialist crisis --- src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 376f7b6..684787d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -38,7 +38,8 @@ const App: React.FC = () => { const [hash, setHash] = useState(location.hash); - console.log(hash); + console.log(`Link for ${hash}`); + useEffect(() => { // Some hacky uri decoding if (location.href.split('/').length > 4) { @@ -46,7 +47,6 @@ const App: React.FC = () => { } window.onhashchange = () => setHash(location.hash); - console.log('why'); }, []); if (hash) {