fix: closing date incorrect on closed polls when no open poll available

This commit is contained in:
Richard Ramos 2019-02-09 15:26:15 -04:00
parent 4de4c9d3d7
commit 7c9ed2b7b2

View File

@ -155,7 +155,7 @@ class LandingPage extends Component {
<Card className="card poll">
<CardContent>
<Typography gutterBottom component="h2">{closedPoll.content.title}</Typography>
<span className="pollClosingDate">Closed: {new Date(openPoll._endTime * 1000).DDMMYYYY()} </span>
<span className="pollClosingDate">Closed: {new Date(closedPoll._endTime * 1000).DDMMYYYY()} </span>
<p className="stats">
Voters: {closedPoll._voters}<br />
Total votes: {closedPoll._votesSum}<br />