orbis fixes

This commit is contained in:
willyb321
2019-10-13 07:16:19 +11:00
parent 67409a613b
commit 1b8c460876
4 changed files with 12 additions and 10 deletions

View File

@@ -426,7 +426,10 @@ export default class Header extends TranslatedComponent {
if (this.props.announcements) {
announcements = [];
for (let announce of this.props.announcements) {
announcements.push(<Announcement text={announce.message} />);
if (announce.expiry < Date.now()) {
continue;
}
announcements.push(<Announcement text={announce.text} />);
announcements.push(<hr/>);
}
}