feat: test tank filters

This commit is contained in:
TrèsAbhi committed 2023-12-06 10:34:43 -06:00
1 parent 2ce083222e
commit 604e751bf4
6 files changed
+43 -5

No files matched your search

+6 -1
View File
@@ -44,7 +44,12 @@ export default function Page() {
: tankopediaState.filters.treeTypes.includes(tank.tree_type)) &&
(tankopediaState.filters.nations.length === 0
? true
: tankopediaState.filters.nations.includes(tank.nation)),
: tankopediaState.filters.nations.includes(tank.nation)) &&
(tankopediaState.filters.test === 'include'
? true
: tankopediaState.filters.test === 'exclude'
? !tank.testing
: tank.testing),
)
.sort((a, b) => {
let diff = 0;