From 8c6e767b5b7bd5d39fb1b223ee82d28298275969 Mon Sep 17 00:00:00 2001
From: Hermann <blumh@ethz.ch>
Date: Sun, 10 Jun 2018 10:13:06 +0200
Subject: [PATCH] display signups correctly also if they are 0

---
 src/events/viewEvent.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/events/viewEvent.js b/src/events/viewEvent.js
index eaf94eb..8af5d6c 100644
--- a/src/events/viewEvent.js
+++ b/src/events/viewEvent.js
@@ -168,7 +168,7 @@ export default class viewEvent extends ItemView {
       ]),
       // below the title, most important details are listed
       m('div.maincontainer', { style: { display: 'flex' } }, [
-        this.data.signup_count && m(Property, {
+        ('signup_count' in this.data && this.data.signup_count !== null) && m(Property, {
           style: stdMargin,
           title: 'Signups',
         }, `${this.data.signup_count} / ${displaySpots}`),
-- 
GitLab