diff --git a/website/src/app/Components/HomeComponent.tsx b/website/src/app/Components/HomeComponent.tsx index 200c157..6d77d43 100644 --- a/website/src/app/Components/HomeComponent.tsx +++ b/website/src/app/Components/HomeComponent.tsx @@ -22,7 +22,9 @@ const HomeComponent: React.FC = () => { const [startingCode, setStartingCode] = useState(null) const [privateKey, setPrivateKey] = useState("") const [selectedCommand, setSelectedCommand] = useState("1") - const [commandArgument, setCommandArgument] = useState() + const [commandArgument, setCommandArgument] = useState( + undefined + ) const [result, setResult] = useState(null) const [error, setError] = useState(null) @@ -182,7 +184,7 @@ const HomeComponent: React.FC = () => { const newCommand = e.target.value setSelectedCommand(newCommand) if (!commandOptions[newCommand].requiresArgument) { - setCommandArgument(0) + setCommandArgument(undefined) } }} required