Skip to content

fix: remove console logs exposing user data and critical website flows #3845

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
May 24, 2025
Merged
19 changes: 8 additions & 11 deletions components/NewsletterSubscribe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,15 @@ export default function NewsletterSubscribe({
headers: {
'Content-Type': 'application/json'
}
})
.then((res) => {
if (res.status === 200) {
setFormStatus(FormStatus.SUCCESS);
} else {
setFormStatus(FormStatus.ERROR);
}
}).then((res) => {
if (res.status === 200) {
setFormStatus(FormStatus.SUCCESS);
} else {
setFormStatus(FormStatus.ERROR);
}

return res.json();
})
// eslint-disable-next-line @typescript-eslint/no-shadow, no-console
.then((data) => console.log(data));
return res.json();
});
};

if (status === FormStatus.SUCCESS) {
Expand Down
1 change: 0 additions & 1 deletion netlify/functions/save-discussion-background/Reposity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ _This discussion has been created from a [slack discussion](${slackURL}). Please
* @param {string} commentId - Id of the comment that you want to be marked as answer.
*/
export async function markAnswer(commentId: string) {
console.log('marking the answer...');
await fetchGraphql(`
mutation {
markDiscussionCommentAsAnswer(input: {id: "${commentId}" }) {
Expand Down
Loading