From 99e0e1e0bed08d02111947f2fd4a2e3526bf34ff Mon Sep 17 00:00:00 2001 From: Kosty Maleyev Date: Tue, 28 Nov 2023 21:39:42 -0800 Subject: [PATCH] [react] fix mis-merge of PR #331 --- react/src/components/Products.js | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/react/src/components/Products.js b/react/src/components/Products.js index a9280e8f..fb89a19f 100644 --- a/react/src/components/Products.js +++ b/react/src/components/Products.js @@ -80,21 +80,10 @@ function Products({ frontendSlowdown, backend }) { useEffect(() => { // getProducts handles error responses differently, depending on the browser used function getProducts(frontendSlowdown) { - let se, customerType, email; - Sentry.withScope(function (scope) { - [se, customerType] = [scope._tags.se, scope._tags.customerType]; - email = scope._user.email; - }); - [('/api', '/connect', '/organization')].forEach((endpoint) => { fetch(backend + endpoint, { method: 'GET', - headers: { - se, - customerType, - email, - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, }).catch((err) => { // If there's an error, it won't stop the Products http request and page from loading Sentry.captureException(err); @@ -108,12 +97,7 @@ function Products({ frontendSlowdown, backend }) { fetch(backend + productsEndpoint, { method: 'GET', - headers: { - se, - customerType, - email, - 'Content-Type': 'application/json', - }, + headers: { 'Content-Type': 'application/json' }, }) .then((result) => { if (!result.ok) {