From 70724be65a5282507701cec95f0d923c771a4816 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Wed, 8 May 2024 21:37:44 +0100 Subject: [PATCH] Fix correct param name --- src/web-check-live/views/Home.tsx | 1 - src/web-check-live/views/Results.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/web-check-live/views/Home.tsx b/src/web-check-live/views/Home.tsx index 17393cb..96da8b2 100644 --- a/src/web-check-live/views/Home.tsx +++ b/src/web-check-live/views/Home.tsx @@ -184,7 +184,6 @@ const Home = (): JSX.Element => { }; const handleKeyPress = (event: React.KeyboardEvent) => { - console.log(event.key); if (event.key === 'Enter') { event.preventDefault(); submit(); diff --git a/src/web-check-live/views/Results.tsx b/src/web-check-live/views/Results.tsx index f0eb4fc..77d1a3a 100644 --- a/src/web-check-live/views/Results.tsx +++ b/src/web-check-live/views/Results.tsx @@ -154,7 +154,7 @@ const FilterButtons = styled.div` const Results = (props: { address?: string } ): JSX.Element => { const startTime = new Date().getTime(); - const address = props.address || useParams().address || ''; + const address = props.address || useParams().urlToScan || ''; const [ addressType, setAddressType ] = useState('empt');