mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-02 06:11:32 +01:00
Prepare for upgrade to React 19
Co-authored-by: ayumi-signal <ayumi@signal.org>
This commit is contained in:
@@ -31,7 +31,7 @@ export function PollVotesModal({
|
||||
endPoll,
|
||||
canEndPoll,
|
||||
messageId,
|
||||
}: PollVotesModalProps): JSX.Element {
|
||||
}: PollVotesModalProps): React.JSX.Element {
|
||||
const maxVoteCount = useMemo(() => {
|
||||
return poll.votesByOption.values().reduce((max, voters) => {
|
||||
return Math.max(max, voters.length);
|
||||
|
||||
Reference in New Issue
Block a user