fix: correct image URL size parameter in getImageUrl function
All checks were successful
Code quality checks / biome (push) Successful in 14s
All checks were successful
Code quality checks / biome (push) Successful in 14s
This commit is contained in:
parent
088ed2a399
commit
d55f38ba1a
1 changed files with 1 additions and 1 deletions
|
@ -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=${width}`;
|
||||
return `https://dcdn.dstn.to/app-icons/${activity.application_id}?size=128`;
|
||||
}
|
||||
|
||||
if (!activity.assets) return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue