Skip to content

Commit

Permalink
fix(#2408): fix app crash on delegation
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzalowski committed Dec 3, 2024
1 parent 3b2b867 commit 6b5bc05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ changes.

- Fix fetching voting power of newly registerd DRep [Issue 2407](https://github.com/IntersectMBO/govtool/issues/2407)
- Fix inconsistent voting status [Issue 1713](https://github.com/IntersectMBO/govtool/issues/1713)
- Fix blank screen on DRep delegation when UTXos are missing [Issue 2408](https://github.com/IntersectMBO/govtool/issues/2408)

### Changed

Expand Down
6 changes: 5 additions & 1 deletion govtool/frontend/src/hooks/useDelegateToDrep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,12 @@ export const useDelegateTodRep = () => {
voter,
});
} catch (error) {
console.error({ error });
openWalletErrorModal({
error,
error:
typeof error === "string"
? error
: (error as { message: string | null })?.message,
dataTestId: "delegate-transaction-error-modal",
});
Sentry.setTag("hook", "useDelegateTodRep");
Expand Down

0 comments on commit 6b5bc05

Please sign in to comment.