diff --git a/components/slack/join-form.js b/components/slack/join-form.js index 43951263..0018e61f 100644 --- a/components/slack/join-form.js +++ b/components/slack/join-form.js @@ -1,3 +1,4 @@ +import { getCookie, hasCookie } from 'cookies-next' import { Box, Card, @@ -11,7 +12,6 @@ import { } from 'theme-ui' import useForm from '../../lib/use-form' import Submit from '../submit' -import { getCookie, hasCookie } from 'cookies-next' import { withRouter } from 'next/router' @@ -23,10 +23,10 @@ const JoinForm = ({ sx = {}, router }) => { method: 'POST', initData: hasCookie('continent') ? { - continent: getCookie('continent'), - reason: router.query.reason, - event: router.query.event - } + continent: getCookie('continent'), + reason: router.query.reason, + event: router.query.event + } : { reason: router.query.reason, event: router.query.event } }) @@ -77,7 +77,7 @@ const JoinForm = ({ sx = {}, router }) => { />