Skip to content

Commit

Permalink
Only throw on message and catch
Browse files Browse the repository at this point in the history
  • Loading branch information
ppsimatikas committed Aug 20, 2024
1 parent efa6af1 commit c7ebfde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/VoteCommentModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const VoteCommentModal: FunctionComponent<VoteCommentModalProps> = ({
comment,
voteWeights: isMulti,
}).then(() => onClose())
.catch(console.log)
}

return (
Expand Down
4 changes: 3 additions & 1 deletion hooks/useSubmitVote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ export const useSubmitVote = () => {
} catch (e) {
console.error(e)
notify({ type: 'error', message: e.message })
throw e
if (msg) {
throw e
}
} finally {
if (isNftPlugin) {
closeNftVotingCountingModal(
Expand Down

0 comments on commit c7ebfde

Please sign in to comment.