fix: correct image URL size parameter in getImageUrl function
All checks were successful
Code quality checks / biome (push) Successful in 14s

This commit is contained in:
Seth 2025-06-18 20:28:34 -04:00
parent 088ed2a399
commit d55f38ba1a

View file

@ -19,7 +19,7 @@ const getImageUrl = (activity: LanyardActivity, size: "large" | "small") => {
const width = size === "large" ? 120 : 40; const width = size === "large" ? 120 : 40;
if (!activity.assets || !activity.assets.large_image) { if (!activity.assets || !activity.assets.large_image) {
if (size === "large") if (size === "large")
return `https://dcdn.dstn.to/app-icons/${activity.application_id}?size=${width}`; return `https://dcdn.dstn.to/app-icons/${activity.application_id}?size=128`;
} }
if (!activity.assets) return null; if (!activity.assets) return null;