Skip to content

Commit

Permalink
correctly check visitor
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Mancusi committed Nov 7, 2023
1 parent 86c0486 commit 2897b6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/red.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const OverrideTemplate = (props: any) => {
return "undefined";
}

const email = (window as any)?.YEXT_AUTH?.email || "UNKNOWN!"
const email = (window as any)?.YEXT_AUTH?.visitor?.email || "UNKNOWN!"

return template.default({
children: <div>{`You email is ${email}`}</div>
Expand Down

0 comments on commit 2897b6f

Please sign in to comment.