diff --git a/pages/members.js b/pages/members.js index e17540c94..95d0ea5eb 100644 --- a/pages/members.js +++ b/pages/members.js @@ -70,7 +70,7 @@ function memberStyle(member) { return {}; } const [latestMission] = member.missions.slice(-1); - if (new Date(latestMission.end) > new Date()) { + if (!latestMission.end || new Date(latestMission.end) > new Date()) { // The member is still in mission :) return {}; } diff --git a/src/data/members.yml b/src/data/members.yml index e686081ea..17690b37b 100644 --- a/src/data/members.yml +++ b/src/data/members.yml @@ -17,7 +17,6 @@ picture: /images/members/avatar.jpg missions: - start: "2019-01-16" - end: "2022-01-16" status: independent - id: romy.duhem.verdiere name: Romy Duhem-Verdière @@ -95,7 +94,6 @@ picture: /images/members/avatar.jpg missions: - start: "2018-10-29" - end: "2022-01-01" status: independent - id: chloe.moser name: Chloe Moser @@ -106,7 +104,6 @@ picture: /images/members/chloe-moser.jpg missions: - start: "2019-04-02" - end: "2022-01-01" status: independent - id: anne.lambert name: Anne Lambert