Skip to content

Commit

Permalink
feat(FeedbackButton): Re-throw error from doSubmit instead of swallow…
Browse files Browse the repository at this point in the history
…ing it.
  • Loading branch information
JeremyRH committed Aug 29, 2024
1 parent dc8d4a8 commit 55f371d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/FeedbackButton/FeedbackButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,9 @@ const FeedbackButton: FC<FeedbackButtonProps> = ({
try {
await doSubmit(form);
} catch (e) {
/* noop */
setIsOpen(false);
throw e;
}

setIsOpen(false);
};

return (
Expand Down

0 comments on commit 55f371d

Please sign in to comment.