From aba6c4b5e8086d492f99fb8a113e57383e056dde Mon Sep 17 00:00:00 2001 From: Princi Vershwal Date: Mon, 5 Feb 2024 10:41:18 +0530 Subject: [PATCH] ENG-32 Fixed error while verifying support address (#19648) --- .../src/components/settings/email/Newsletters.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/admin-x-settings/src/components/settings/email/Newsletters.tsx b/apps/admin-x-settings/src/components/settings/email/Newsletters.tsx index 708c5c5f68..b711752646 100644 --- a/apps/admin-x-settings/src/components/settings/email/Newsletters.tsx +++ b/apps/admin-x-settings/src/components/settings/email/Newsletters.tsx @@ -42,7 +42,7 @@ const Newsletters: React.FC<{ keywords: string[] }> = ({keywords}) => { }, [apiNewsletters]); useEffect(() => { - if (!verifyEmailToken) { + if (!verifyEmailToken || !window.location.href.includes('newsletters')) { return; }