Skip to content

Commit

Permalink
fix(FeedbackCreateForm): form closes after submit
Browse files Browse the repository at this point in the history
  • Loading branch information
troff8 authored and troff8 committed Aug 15, 2023
1 parent b7b3584 commit 625ec37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trpc/router/feedback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const feedback = router({
}
const { name, email, image } = ctx.session.user;
const userAgent = ctx.headers['user-agent'];
await fetch(process.env.FEEDBACK_URL, {
const res = await fetch(process.env.FEEDBACK_URL, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand All @@ -25,5 +25,6 @@ export const feedback = router({
avatarUrl: image,
}),
});
return res;
}),
});

0 comments on commit 625ec37

Please sign in to comment.