Skip to content

Commit

Permalink
chore: Refactor character builds retrieval in GenshinCharacterPage
Browse files Browse the repository at this point in the history
  • Loading branch information
dvaJi committed Dec 1, 2023
1 parent 814a30d commit e7f72d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/[lang]/(genshin)/character/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ export default async function GenshinCharacterPage({ params }: Props) {
return notFound();
}

const buildsOld: Build[] = await getCharacterBuild(character.id);
const buildsOld: Build[] =
require(`../../../../../_content/genshin/data/builds.json`)[character.id] ||
[];
const weaponsList = await genshinData.weapons({
select: ["id", "name", "rarity", "stats"],
});
Expand Down

1 comment on commit e7f72d4

@vercel
Copy link

@vercel vercel bot commented on e7f72d4 Dec 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.