diff --git a/src/events/editEvent.js b/src/events/editEvent.js index d866c68e2e462c85b08e6b654a2c1e7729a4e1b9..41729f4a4de2ea1e1b034a970566faec976725a1 100644 --- a/src/events/editEvent.js +++ b/src/events/editEvent.js @@ -29,6 +29,9 @@ export default class newEvent extends EditView { this.data.additional_fields = {}; } + // price can either not be set or set to null + // if it is 0 however, that would mean that there actually is a price that + // you can edit this.hasprice = 'price' in this.data && this.data.price !== null; this.hasregistration = 'time_advertising_start' in this.data; }