Fix disappearing poll button when media is uploaded

This commit is contained in:
Alex Gleason
2020-07-28 14:42:58 -05:00
parent 7342325e23
commit 444e3641ee

View File

@ -3,7 +3,7 @@ import PollButton from '../components/poll_button';
import { addPoll, removePoll } from '../../../actions/compose';
const mapStateToProps = state => ({
unavailable: state.getIn(['compose', 'is_uploading']) || (state.getIn(['compose', 'media_attachments']).size > 0),
unavailable: state.getIn(['compose', 'is_uploading']),
active: state.getIn(['compose', 'poll']) !== null,
});