From 2897b6f1b867635b6f93cb6529393cb9f409aba5 Mon Sep 17 00:00:00 2001 From: Justin Mancusi Date: Tue, 7 Nov 2023 15:36:25 -0500 Subject: [PATCH] correctly check visitor --- src/templates/red.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/red.tsx b/src/templates/red.tsx index 876e59e..07b3a53 100644 --- a/src/templates/red.tsx +++ b/src/templates/red.tsx @@ -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:
{`You email is ${email}`}