Skip to content

Commit f9da71d

Browse files
committed
eliminate code warning
1 parent dda2d9e commit f9da71d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/util/NavigationState.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ export default class NavigationState {
5454

5555
private getLastDraftStep() : TechDraftStep | undefined {
5656
return (this.roundData.techDraftSteps?.toSorted((a, b) => a.step - b.step) ?? [])
57-
.filter(item => item.step < this.draftingStep || this.draftingStep == 0)
58-
.at(-1)
57+
.findLast(item => item.step < this.draftingStep || this.draftingStep == 0)
5958
}
6059

6160
private getTechCardSelectionPersistence() : TechCardSelectionPersistence {

0 commit comments

Comments
 (0)