mirror of
https://github.com/Lissy93/web-check.git
synced 2024-12-01 20:55:53 +01:00
Fix correct param name
This commit is contained in:
parent
7e27143a90
commit
70724be65a
@ -184,7 +184,6 @@ const Home = (): JSX.Element => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleKeyPress = (event: React.KeyboardEvent<HTMLInputElement>) => {
|
const handleKeyPress = (event: React.KeyboardEvent<HTMLInputElement>) => {
|
||||||
console.log(event.key);
|
|
||||||
if (event.key === 'Enter') {
|
if (event.key === 'Enter') {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
submit();
|
submit();
|
||||||
|
@ -154,7 +154,7 @@ const FilterButtons = styled.div`
|
|||||||
const Results = (props: { address?: string } ): JSX.Element => {
|
const Results = (props: { address?: string } ): JSX.Element => {
|
||||||
const startTime = new Date().getTime();
|
const startTime = new Date().getTime();
|
||||||
|
|
||||||
const address = props.address || useParams().address || '';
|
const address = props.address || useParams().urlToScan || '';
|
||||||
|
|
||||||
const [ addressType, setAddressType ] = useState<AddressType>('empt');
|
const [ addressType, setAddressType ] = useState<AddressType>('empt');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user