Skip to content

Commit

Permalink
Handle empty amount in types/ProposalDetails (Joystream#2327)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joystream Stats committed Dec 4, 2022
1 parent fb7b166 commit 2c439a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/proposals/types/ProposalDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ const asUpdateWorkingGroupBudget: DetailsCast<'UpdateWorkingGroupBudgetProposalD
fragment
): UpdateGroupBudgetDetails => ({
type: 'updateWorkingGroupBudget',
amount: new BN(fragment.amount),
amount: new BN(fragment.amount ?? 0),
group: {
id: fragment.group?.id as GroupIdName,
name: asWorkingGroupName(fragment.group?.name ?? 'Unknown'),
Expand Down

0 comments on commit 2c439a1

Please sign in to comment.