From b7857d93cd89c1364545f45803dabfdb2fe69c00 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sat, 12 Oct 2019 11:53:40 +0200 Subject: [PATCH] Fix number of places toggle on event edit form Closes #205 Signed-off-by: Thomas Citharel --- js/src/views/Event/Edit.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/views/Event/Edit.vue b/js/src/views/Event/Edit.vue index 40dbc7647..27de2111b 100644 --- a/js/src/views/Event/Edit.vue +++ b/js/src/views/Event/Edit.vue @@ -316,7 +316,7 @@ export default class EditEvent extends Vue { this.unmodifiedEvent = JSON.parse(JSON.stringify(this.event.toEditJSON())); this.pictureFile = await buildFileFromIPicture(this.event.picture); - this.limitedPlaces = this.event.options.maximumAttendeeCapacity != null; + this.limitedPlaces = this.event.options.maximumAttendeeCapacity !== 0; } }