Fix number of places toggle on event edit form

Closes #205

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2019-10-12 11:53:40 +02:00
parent 6afde20b96
commit b7857d93cd
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -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;
}
}