From db846c0680475d46cb0efa0ff61a4d00cd9dbbc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sat, 14 Oct 2023 18:50:08 -0500 Subject: [PATCH] fix: provide clan_id --- src/commands/ownedTanks.tsx | 14 -------------- src/components/GenericAllStats/index.tsx | 4 +--- src/core/blitz/getClanAccountInfo.ts | 2 +- 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/src/commands/ownedTanks.tsx b/src/commands/ownedTanks.tsx index 16fa9fd85..6b6878ab9 100644 --- a/src/commands/ownedTanks.tsx +++ b/src/commands/ownedTanks.tsx @@ -127,17 +127,3 @@ export const ownedTanksCommand: CommandRegistry = { autocomplete: autocompleteUsername, }; - -// TODO: make this work in the future -// console.log('Caching tank images...'); -// TANKS.then((tanks) => -// jsxToSvg( -//
-// {tanks.map(({ images, tank_id }) => { -// return ( -// images.normal && -// ); -// })} -//
, -// ), -// ).then(() => console.log('Cached tank images')); diff --git a/src/components/GenericAllStats/index.tsx b/src/components/GenericAllStats/index.tsx index 3304b780e..21cbee368 100644 --- a/src/components/GenericAllStats/index.tsx +++ b/src/components/GenericAllStats/index.tsx @@ -1,12 +1,10 @@ import { AllStats, SupplementaryStats } from '../../core/blitz/getAccountInfo'; -import getWN8Percentile from '../../core/statistics/getWN8Percentile'; import isNumber from '../../core/math/isNumber'; +import getWN8Percentile from '../../core/statistics/getWN8Percentile'; import { Card } from './components/Card'; import { Root } from './components/Root'; import { Row } from './components/Row'; -// TODO: remove the .js endings - export interface GenericAllStatsProps { stats: AllStats; supplementaryStats?: SupplementaryStats; diff --git a/src/core/blitz/getClanAccountInfo.ts b/src/core/blitz/getClanAccountInfo.ts index 9fee45c89..db534c432 100644 --- a/src/core/blitz/getClanAccountInfo.ts +++ b/src/core/blitz/getClanAccountInfo.ts @@ -32,7 +32,7 @@ export async function getClanAccountInfo< : IndividualClanAccountInfo[], >(region: Region, ids: Ids, extra?: string[]) { const object = await fetchBlitz( - `https://api.wotblitz.${region}/wotb/clans/info/?application_id=${WARGAMING_APPLICATION_ID}&account_id=${normalizeIds( + `https://api.wotblitz.${region}/wotb/clans/info/?application_id=${WARGAMING_APPLICATION_ID}&clan_id=${normalizeIds( ids, )}${normalizeExtra(extra)}`, );