Skip to content

Commit

Permalink
Merge branch 'feature/polls-api-upd' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
feruzm committed Jun 7, 2024
2 parents aa670f1 + 1e102a8 commit b65c056
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 b65c056

Please sign in to comment.