Skip to content
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