Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
WirVsVirus
webgame
Commits
f14e0e5c
Commit
f14e0e5c
authored
May 10, 2020
by
Josef Hoppe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trim entered name
parent
b3965f5c
Pipeline
#683
passed with stages
in 6 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
frontend/src/components/Lobby.tsx
frontend/src/components/Lobby.tsx
+1
-0
No files found.
frontend/src/components/Lobby.tsx
View file @
f14e0e5c
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment