mirror of
https://github.com/status-im/snt-voting.git
synced 2025-02-22 15:18:06 +00:00
fix: closing date incorrect on closed polls when no open poll available
This commit is contained in:
parent
4de4c9d3d7
commit
7c9ed2b7b2
@ -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 />
|
||||
|
Loading…
x
Reference in New Issue
Block a user