Skip to content

Commit

Permalink
fix: adds optional chaining to accountOverview (#2478)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeanribeiro authored Mar 7, 2022
1 parent 7f7ad99 commit 1ab5c77
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/shared/components/popups/Transaction.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@
}
$: accountOverview = $participationOverview?.find((apo) => apo?.accountIndex === $selectedAccount.index)
$: isAccountVoting = Object.values(accountOverview.trackedParticipations)
?.find((tp) => tp?.find((p) => p?.endMilestoneIndex === 0))?.length > 0 ?? false
$: isAccountVoting =
Object.values(accountOverview?.trackedParticipations)?.find((tp) => tp?.find((p) => p?.endMilestoneIndex === 0))
?.length > 0 ?? false
let activeParticipationType: ActiveParticipationType | ''
$: {
Expand Down

0 comments on commit 1ab5c77

Please sign in to comment.