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

This commit is contained in:
Seth 2025-06-18 20:26:58 -04:00
parent a38ee2835d
commit 088ed2a399

View file

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