Skip to content

Commit

Permalink
feat(member): make end mission date optional
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Sep 23, 2020
1 parent 34b9d5c commit c02ee78
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion pages/members.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};
}
Expand Down
3 changes: 0 additions & 3 deletions src/data/members.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c02ee78

Please sign in to comment.