hotfix prefill undefined bug booking page (#2166)

Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
This commit is contained in:
Agusti FernandezandAgusti Fernandez Pardo authored and GitHub committed 2022-03-16 13:18:11 +00:00
1 parent c8505cd71c
commit e21813ba96
3 files changed
+3 -3

No files matched your search

Submodule apps/api updated: 378cbf8f3a...63e0ca33e9.
@@ -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 {