From 5b6c6116557409ef8e49525c95887fda7924c83d Mon Sep 17 00:00:00 2001 From: StephanieP Date: Fri, 16 Feb 2018 15:25:56 +0100 Subject: [PATCH] #3 numberOfSeats calculated correctly --- src/main/webapp/index.html | 2 +- src/main/webapp/js/utils/dataHelper.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 5bbd2cd..80bb6e0 100644 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -64,7 +64,7 @@

Seats:
-
{{talk.occupiedSeats}} / {{ talk.availableSeats }} occupied
+
{{talk.occupiedSeats || 0}} / {{ talk.availableSeats }} occupied
diff --git a/src/main/webapp/js/utils/dataHelper.js b/src/main/webapp/js/utils/dataHelper.js index 21f343b..b7e0063 100644 --- a/src/main/webapp/js/utils/dataHelper.js +++ b/src/main/webapp/js/utils/dataHelper.js @@ -71,7 +71,6 @@ define(['moment'], function(moment) { entry.roomName = getRoomName(entry.locationId, metaData.locations); entry.formattedStart = moment(entry.start).format('MMM DD, HH:mm'); entry.availableSeats = getSeats(entry.locationId, metaData.locations); - entry.occupiedSeats = 0; } function addDeltaToConferences(events, delta) {