From bf7b7fd90ccccfd4f804f2f6791fc486e0e931cf Mon Sep 17 00:00:00 2001 From: Winston Hsiao <96440583+Winston-Hsiao@users.noreply.github.com> Date: Wed, 6 Nov 2024 23:21:04 -0500 Subject: [PATCH] Adjust Sprig email setting (#556) --- frontend/src/components/SprigInitializer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/SprigInitializer.tsx b/frontend/src/components/SprigInitializer.tsx index 05baaebc..0693ea64 100644 --- a/frontend/src/components/SprigInitializer.tsx +++ b/frontend/src/components/SprigInitializer.tsx @@ -16,7 +16,7 @@ const SprigInitializer = () => { // Set user ID and email in Sprig if user is authenticated if (isAuthenticated && currentUser) { window.Sprig("setUserId", currentUser.id); - window.Sprig("setUserEmail", currentUser.email); + window.Sprig("setEmail", currentUser.email); } // Track page view