Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SSHOC
sshoc-marketplace-frontend
Commits
4c4bfb66
Commit
4c4bfb66
authored
Mar 10, 2021
by
Stefan Probst
Browse files
fix: unbreak contact form
parent
6df18dd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/screens/contact/ContactScreen.tsx
View file @
4c4bfb66
...
...
@@ -85,7 +85,9 @@ function ContactForm() {
useEffect
(()
=>
{
// remove query params from url
router
.
replace
({
query
:
{}
},
undefined
,
{
shallow
:
true
})
if
(
router
.
isReady
&&
Object
.
keys
(
router
.
query
).
length
>
0
)
{
router
.
replace
({
query
:
{}
},
undefined
,
{
shallow
:
true
})
}
},
[
router
])
function
onSubmit
(
formData
:
ContactFormData
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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