fix: clan images

This commit is contained in:
TrèsAbhi committed 2023-10-16 20:16:23 -05:00
1 parent 1317c2879c
commit 533bfc4458
7 files changed
+13 -5

No files matched your search

+3 -1
View File
@@ -35,12 +35,14 @@ async function render(
filters: StatFilters,
) {
const { nickname } = await getAccountInfo(region, id);
const clan = (await getClanAccountInfo(region, id))?.clan;
const clan = (await getClanAccountInfo(region, id, ['clan']))?.clan;
const clanImage = clan ? emblemIdToURL(clan.emblem_set_id) : undefined;
const diffedTankStats = await getStatsInPeriod(region, id, start, end);
const { stats, supplementary } = await filterStats(diffedTankStats, filters);
const filterDescriptions = await filtersToDescription(filters);
console.log(clan);
return (
<Wrapper>
<TitleBar