Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const { poll, isConnected } = this.props
return isFinished(poll) && isMobile() ? null : (
<div>
{!isFinished(poll) && isConnected ? (
<button>{t('poll_detail_page.cast_vote')}</button>
) : (
<button disabled="">
{t('poll_detail_page.cast_vote')}
</button>
)}
</div>
)
}
}