Skip to content

Commit

Permalink
fixed dates
Browse files Browse the repository at this point in the history
  • Loading branch information
darkhappy committed Mar 1, 2020
1 parent 42da7c0 commit 207e933
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/components/SillyMeter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@ class SillyMeter extends Component {
return <h5>{sillyData.winner}</h5>;
}

// if it's inactive, show "upcoming teams"
if (sillyData.state === "Inactive") {
return (
<p className="text-muted">
Upcoming teams: {sillyData.rewards[0]}
<br />
{sillyData.rewards[1]}
<br />
{sillyData.rewards[2]}
</p>
);
}

return (
<p>
{sillyData.rewards[0]}
Expand All @@ -42,9 +55,9 @@ class SillyMeter extends Component {
if (sillyData.state === "Active") {
return "Updating at " + date.toLocaleTimeString();
} else if (sillyData.state === "Reward") {
return "Boosting until " + date.toLocaleTimeString();
return "Boosting until " + date.toLocaleString();
} else {
return "Cooling down until " + date.toLocaleTimeString();
return "Cooling down until " + date.toLocaleString();
}
}

Expand Down

0 comments on commit 207e933

Please sign in to comment.