Skip to content

Commit a6b1717

Browse files
Only console.log in exception catch
1 parent 2c1565a commit a6b1717

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

dotcom-rendering/src/lib/useNewsletterSignupForm.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,21 +308,22 @@ export const useNewsletterSignupForm = (
308308
}, []);
309309

310310
useEffect(() => {
311-
console.log('after useEffect fill in email');
312311
if (renderingTarget === 'Apps') {
313312
// Fill in email using apps bridget API
314313
void getNewslettersClient()
315314
.getLoggedInUserEmail()
316315
.then((maybeEmail) => {
317-
console.log('after getLoggedInUserEmail ', maybeEmail);
318316
const email = maybeEmail.emailAddress;
319317
if (!email) return;
320318
setUserEmail(email);
321319
setHasPrefilledEmail(true);
322320
setIsInteracted(true);
323321
})
324322
.catch((reason) => {
325-
console.log('after getLoggedInUserEmail catch ', reason);
323+
console.log(
324+
'Failed to getLoggedInUserEmail from bridget ',
325+
reason,
326+
);
326327
});
327328
} else {
328329
if (emailFetchStartedRef.current) return;

0 commit comments

Comments
 (0)