Skip to content

Commit

Permalink
chore: add extra info to voting error report (#1137)
Browse files Browse the repository at this point in the history
  • Loading branch information
1emu authored Jul 26, 2023
1 parent 235a152 commit 0e03876
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pages/proposal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,12 @@ export default function ProposalPage() {
})
reloadVotes()
} catch (error) {
ErrorClient.report('Unable to vote', { error, category: ErrorCategory.Voting })
ErrorClient.report('Unable to vote', {
error,
address: listedAccount,
proposal: proposal.id,
category: ErrorCategory.Voting,
})
if ((error as any).code === ErrorCode.ACTION_REJECTED) {
updatePageState({
changingVote: false,
Expand Down

0 comments on commit 0e03876

Please sign in to comment.