diff --git a/docs/changelogs/1.14.2.md b/docs/changelogs/1.14.2.md new file mode 100644 index 000000000..aba20d8ee --- /dev/null +++ b/docs/changelogs/1.14.2.md @@ -0,0 +1,8 @@ +# Blitzkrieg 1.14.1 + +A late night hot fix for my homies + +## Fixes + +- Clan info is now fetched using `clan_id` instead of `account_id` +- Generic stats row names are now bounded by a max width diff --git a/src/components/GenericStats/components/GenericStatsRow.tsx b/src/components/GenericStats/components/GenericStatsRow.tsx index 1a4e5c7a0..86adb931a 100644 --- a/src/components/GenericStats/components/GenericStatsRow.tsx +++ b/src/components/GenericStats/components/GenericStatsRow.tsx @@ -15,9 +15,18 @@ export default function GenericStatsRow({ stat }: GenericStatsRowProps) { alignItems: 'center', }} > - + {stat[0]} + (region: Region, ids: Ids) { 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, )}`, );