From f14e0e5ca486fc376994cc1ece91eacbbddea2fc Mon Sep 17 00:00:00 2001 From: Josef Hoppe Date: Sun, 10 May 2020 00:09:26 +0200 Subject: [PATCH] trim entered name --- frontend/src/components/Lobby.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/Lobby.tsx b/frontend/src/components/Lobby.tsx index 19b956c..b322974 100644 --- a/frontend/src/components/Lobby.tsx +++ b/frontend/src/components/Lobby.tsx @@ -17,6 +17,7 @@ export function Lobby(props: { }) { const [submitted, setSubmitted] = useState(false); const submitName = async (name: string) => { + name = name.trim(); if (name.length > 0) { writeToUrl(name); setSubmitted(true); -- GitLab