Update app/soapbox/components/poll.js

draftjs
marcin mikołajczak 2021-10-24 12:33:24 +00:00
rodzic f2b91a2231
commit ce9a150abc
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -149,7 +149,7 @@ class Poll extends ImmutablePureComponent {
const timeRemaining = poll.get('expired') ? intl.formatMessage(messages.closed) : <RelativeTimestamp timestamp={poll.get('expires_at')} futureDate />;
const showResults = poll.get('voted') || poll.get('expired');
const disabled = this.props.disabled || Object.entries(this.state.selected).every(item => !item);
const voted = me && poll.get('own_votes', []).size > 0;
const voted = me && poll.get('own_votes').size > 0;
return (
<div className={classNames('poll', { voted })}>