diff --git a/app/soapbox/components/poll.js b/app/soapbox/components/poll.js index 9b0327798..57d693003 100644 --- a/app/soapbox/components/poll.js +++ b/app/soapbox/components/poll.js @@ -12,6 +12,7 @@ import { vote, fetchPoll } from 'soapbox/actions/polls'; import Icon from 'soapbox/components/icon'; import emojify from 'soapbox/features/emoji/emoji'; import Motion from 'soapbox/features/ui/util/optional_motion'; +import SoapboxPropTypes from 'soapbox/utils/soapbox_prop_types'; import RelativeTimestamp from './relative_timestamp'; @@ -34,6 +35,7 @@ class Poll extends ImmutablePureComponent { intl: PropTypes.object.isRequired, dispatch: PropTypes.func, disabled: PropTypes.bool, + me: SoapboxPropTypes.me, status: PropTypes.string, }; diff --git a/app/soapbox/containers/poll_container.js b/app/soapbox/containers/poll_container.js index 4c110cdc9..50d21517a 100644 --- a/app/soapbox/containers/poll_container.js +++ b/app/soapbox/containers/poll_container.js @@ -4,6 +4,7 @@ import Poll from 'soapbox/components/poll'; const mapStateToProps = (state, { pollId }) => ({ poll: state.getIn(['polls', pollId]), + me: state.get('me'), });