Commit 4c4bfb66 authored by Stefan Probst's avatar Stefan Probst
Browse files

fix: unbreak contact form

parent 6df18dd5
...@@ -85,7 +85,9 @@ function ContactForm() { ...@@ -85,7 +85,9 @@ function ContactForm() {
useEffect(() => { useEffect(() => {
// remove query params from url // 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]) }, [router])
function onSubmit(formData: ContactFormData) { function onSubmit(formData: ContactFormData) {
......
Supports Markdown
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