feat: data driven latest archived season number

This commit is contained in:
TrèsAbhi committed 2023-10-31 12:35:32 -05:00
1 parent d1ebb79432
commit f02db2a2d8
13 files changed
+145 -96

No files matched your search

+1 -1
View File
@@ -90,7 +90,7 @@ export const tankAverages = fetch(
)
.then((response) => response.json())
.then((json) => {
if (context === 'bot') {
if (context === 'server') {
const partialTankAverages: TankAverages = {};
(json as IndividualTankAverage[]).forEach((individualTankAverage) => {
+1 -1
View File
@@ -23,7 +23,7 @@ export const tankopedia = fetch(
)
.then(async (response) => response.json())
.then((wrapperTankopedia) =>
context === 'bot'
context === 'server'
? (wrapperTankopedia as { data: Tankopedia }).data
: (wrapperTankopedia as Tankopedia),
);