Skip to content

Commit

Permalink
fix: Fixed bug in checklist to not display previous checklists as com…
Browse files Browse the repository at this point in the history
…pleted (#8615)

Fixed bug in checklist to not display previous checklists as completed.
  • Loading branch information
frankkopp authored and BlueberryKing committed Apr 12, 2024
1 parent 57e9a4f commit 0d1041d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export const getRelevantChecklistIndices = () => {

// iterate over all checklists and check if they are relevant for the current flight phase
aircraftChecklists.forEach((cl, clIndex) => {
// check if the checklist is relevant for the current flight phase
if (cl.flightphase && cl.flightphase === flightPhase) {
// check if the checklist is relevant for the previous or the current flight phase
if (cl.flightphase && cl.flightphase <= flightPhase) {
relevantChecklistIndices.push(clIndex);
}
});
Expand Down

0 comments on commit 0d1041d

Please sign in to comment.