Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
dkildar committed Jun 7, 2024
1 parent eed3027 commit 1e102a8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export function PollOptionWithResults({ choice, activeChoices, entry, interpreta
[choice, pollDetails.data?.poll_choices]
);
const totalVotes = useMemo(
() => Math.max(pollDetails.data?.poll_stats.total_voting_accounts_num ?? 0, 1),
[pollDetails.data?.poll_stats.total_voting_accounts_num]
() => Math.max(pollDetails.data?.poll_stats?.total_voting_accounts_num ?? 0, 1),
[pollDetails.data?.poll_stats?.total_voting_accounts_num]
);
const totalHp = useMemo(
() => pollDetails.data?.poll_stats?.total_hive_hp_incl_proxied ?? 0,
Expand Down

0 comments on commit 1e102a8

Please sign in to comment.