Commit f14e0e5c authored by Josef Hoppe's avatar Josef Hoppe

trim entered name

parent b3965f5c
Pipeline #683 passed with stages
in 6 minutes and 2 seconds
......@@ -17,6 +17,7 @@ export function Lobby(props: {
}) {
const [submitted, setSubmitted] = useState<boolean>(false);
const submitName = async (name: string) => {
name = name.trim();
if (name.length > 0) {
writeToUrl(name);
setSubmitted(true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment