Skip to content

Commit 76a0983

Browse files
sagarkori143asyncapi-botsambhavgupta0705akshatnema
authored
fix: remove console logs exposing user data and critical website flows (#3845)
Co-authored-by: Sagar Kori <[email protected]> Co-authored-by: Chan <[email protected]> Co-authored-by: Sambhav Gupta <[email protected]> Co-authored-by: Akshat Nema <[email protected]>
1 parent 829bd73 commit 76a0983

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

components/NewsletterSubscribe.tsx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,15 @@ export default function NewsletterSubscribe({
7979
headers: {
8080
'Content-Type': 'application/json'
8181
}
82-
})
83-
.then((res) => {
84-
if (res.status === 200) {
85-
setFormStatus(FormStatus.SUCCESS);
86-
} else {
87-
setFormStatus(FormStatus.ERROR);
88-
}
82+
}).then((res) => {
83+
if (res.status === 200) {
84+
setFormStatus(FormStatus.SUCCESS);
85+
} else {
86+
setFormStatus(FormStatus.ERROR);
87+
}
8988

90-
return res.json();
91-
})
92-
// eslint-disable-next-line @typescript-eslint/no-shadow, no-console
93-
.then((data) => console.log(data));
89+
return res.json();
90+
});
9491
};
9592

9693
if (status === FormStatus.SUCCESS) {

netlify/functions/save-discussion-background/Reposity.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ _This discussion has been created from a [slack discussion](${slackURL}). Please
112112
* @param {string} commentId - Id of the comment that you want to be marked as answer.
113113
*/
114114
export async function markAnswer(commentId: string) {
115-
console.log('marking the answer...');
116115
await fetchGraphql(`
117116
mutation {
118117
markDiscussionCommentAsAnswer(input: {id: "${commentId}" }) {

0 commit comments

Comments
 (0)