Fix correct param name

This commit is contained in:
Alicia Sykes 2024-05-08 21:37:44 +01:00
parent 7e27143a90
commit 70724be65a
2 changed files with 1 additions and 2 deletions

View File

@ -184,7 +184,6 @@ const Home = (): JSX.Element => {
};
const handleKeyPress = (event: React.KeyboardEvent<HTMLInputElement>) => {
console.log(event.key);
if (event.key === 'Enter') {
event.preventDefault();
submit();

View File

@ -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<AddressType>('empt');