Check next sortie checklist detail consistency
This commit is contained in:
@@ -9599,6 +9599,9 @@ function assertSortieTacticalRoster(state, requiredUnitIds) {
|
||||
if (state.sortieChecklistSummary.complete && state.sortieChecklistSummary.nextIncompleteLabel !== null) {
|
||||
throw new Error(`Expected complete sortie checklist summary to clear next incomplete item: ${JSON.stringify(state.sortieChecklistSummary)}`);
|
||||
}
|
||||
if (state.sortieChecklistSummary.complete && state.sortieChecklistSummary.nextIncompleteDetail !== null) {
|
||||
throw new Error(`Expected complete sortie checklist summary to clear next incomplete detail: ${JSON.stringify(state.sortieChecklistSummary)}`);
|
||||
}
|
||||
if (!state.sortieChecklistSummary.complete && !state.sortieChecklistSummary.nextIncompleteLabel) {
|
||||
throw new Error(`Expected incomplete sortie checklist summary to expose next incomplete item: ${JSON.stringify(state.sortieChecklistSummary)}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user