feat: recently veiwed tanks

This commit is contained in:
tresabhi committed 2024-11-11 10:50:15 -06:00
1 parent ea013c4df8
commit 387a67266f
9 files changed
+80 -14

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ const testTanks = tanks
const mostPlayedTanks = tankAverages
.sort((a, b) => b.samples.d_1 - a.samples.d_1)
.map(({ id }) => tankDefinitions.tanks[id])
.filter(Boolean);
.filter((tank) => tank !== undefined && !tank.testing);
const popularTanks = [...testTanks, ...mostPlayedTanks].slice(0, 8);
---