fix(front): fix react hydration error

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

No files matched your search

+1 -1
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;