Skip to content

Commit

Permalink
made vendor public
Browse files Browse the repository at this point in the history
  • Loading branch information
amykapernick committed Jul 29, 2024
1 parent 999a8b5 commit 8b8f431
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion utils/fetchData/currentGuest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@ import notion from './notion'
const fetchCurrentGuest = async (guestId?: string) =>
{

const { emailAddresses } = (await currentUser()) as User;
const userData = (await currentUser()) as User;

if (!userData?.emailAddresses)
{
return ({
guest: null,
email: 'none@wedding.com',
})
}

const { emailAddresses } = userData

let filter: any = {
property: "GokD",
Expand Down

0 comments on commit 8b8f431

Please sign in to comment.