Commit 6ac48c9f authored by Gijs Hendriksen's avatar Gijs Hendriksen
Browse files

Fix wrong variable and missing variables in reducer

parent f3fbd498
......@@ -42,7 +42,7 @@ class Event extends Component {
</View>,
);
if (event.registration_start !== null || event.registration_end !== null) {
if (data.registration_start !== null || data.registration_end !== null) {
const registrationDeadline = Moment(data.registration_end).format('D MMM YYYY, HH:mm');
const cancelDeadline = Moment(data.cancel_deadline).format('D MMM YYYY, HH:mm');
......
......@@ -10,8 +10,9 @@ const initialState = {
organiser: -1,
category: '',
location: '',
status: -1,
registered: false,
map_location: '',
registration_allowed: false,
has_fields: false,
},
registrations: [],
success: false,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment