fix(front): fix react hydration error

This commit is contained in:
Hexagonn
2024-11-03 03:08:32 +00:00
committed by GitHub
parent 347ced2c65
commit 8ec6196593
3 changed files with 21 additions and 5 deletions

View File

@@ -97,7 +97,7 @@ async function renderCard(body: LanyardTypes.Root, params: Parameters): Promise<
if (data.discord_user.avatar && data.discord_user.avatar.startsWith("a_")) avatarExtension = "gif";
if (params.animated === "false") avatarExtension = "webp";
if (params.theme === "light") {
backgroundColor = "#eee";
backgroundColor = "eee";
theme = "light";
}
if (params.bg) backgroundColor = params.bg;