Skip to content

Commit

Permalink
Merge pull request #2457 from IntersectMBO/fix/2408-blank-screen-appe…
Browse files Browse the repository at this point in the history
…ars-when-delegatingregistering-drep-with-a-wallet-lacking-utxos

fix(#2408): fix app crash on delegation
  • Loading branch information
MSzalowski authored Dec 5, 2024
2 parents b083832 + efd3d7b commit 4ae0474
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 4ae0474

Please sign in to comment.