Skip to content

Commit

Permalink
fix: Prevent broken PNG when logoColor is passed (#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
DenverCoder1 authored Sep 27, 2023
1 parent 3a78ee1 commit 7be5d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/services/icons/iconDatabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class IconDatabaseService extends IconsService {
return null;
}
// set color if it is not null
const data = color ? setLogoColor(icon.data, color) : icon.data;
const data = color && icon.type === 'svg+xml' ? setLogoColor(icon.data, color) : icon.data;
// return icon
return {
slug: icon.slug,
Expand Down

0 comments on commit 7be5d72

Please sign in to comment.