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 5, 2024
1 parent b083832 commit efd3d7b
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 @@ -19,6 +19,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 removing a child (link) when is not registed in DOM [Issue 2398](https://github.com/IntersectMBO/govtool/issues/2398)
- 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 efd3d7b

Please sign in to comment.