Change order that the page is prefilled (#3003)

pull/2999/head
Joe Au-Yeung 2022-06-07 11:46:07 -04:00 committed by GitHub
parent e863b71dfa
commit 55d6f1ee35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -232,8 +232,8 @@ const BookingPage = ({
const defaultValues = () => {
if (!rescheduleUid) {
return {
name: loggedInIsOwner ? "" : session?.user?.name || (router.query.name as string) || "",
email: loggedInIsOwner ? "" : session?.user?.email || (router.query.email as string) || "",
name: (router.query.name as string) || (!loggedInIsOwner && session?.user?.name) || "",
email: (router.query.email as string) || (!loggedInIsOwner && session?.user?.email) || "",
notes: (router.query.notes as string) || "",
guests: ensureArray(router.query.guest) as string[],
customInputs: eventType.customInputs.reduce(