Skip to content

Commit

Permalink
Fix problem with missing bigNumberValue during prepareProposal
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrila committed Apr 8, 2024
1 parent 2285855 commit 6b0aade
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hooks/DAO/proposal/usePrepareProposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export function usePrepareProposal() {
);
return {
targets,
values: transactionsWithEncoding.map(transaction => transaction.ethValue.bigNumberValue!),
values: transactionsWithEncoding.map(
transaction => transaction.ethValue.bigNumberValue || 0,
),
calldatas: transactionsWithEncoding.map(
transaction => transaction.encodedFunctionData || '',
),
Expand Down

0 comments on commit 6b0aade

Please sign in to comment.