hotfix prefill undefined bug booking page (#2166)

Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
pull/2167/head
Agusti Fernandez 2022-03-16 14:18:11 +01:00 committed by GitHub
parent c8505cd71c
commit e21813ba96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 378cbf8f3a67ea7877296f1da02edb2b6e3efbce
Subproject commit 63e0ca33e95583a5e2aae69195af052fd0d9aef8

View File

@ -142,7 +142,7 @@ const BookingPage = ({ eventType, booking, profile }: BookingPageProps) => {
[LocationType.Huddle01]: "Huddle01 Video",
[LocationType.Tandem]: "Tandem Video",
};
const loggedInIsOwner = eventType.users[0].name === session?.user.name;
const loggedInIsOwner = eventType?.users[0]?.name === session?.user?.name;
const defaultValues = () => {
if (!rescheduleUid) {
return {

@ -1 +1 @@
Subproject commit 7f0e321c333c63158af536a814dd4f4cb477c89a
Subproject commit c6c9c210a4041fedaeaf22bf34b788f83e523ef3