diff --git a/server/services/icons/iconDatabase.ts b/server/services/icons/iconDatabase.ts index 66a081a0..947ff2f1 100644 --- a/server/services/icons/iconDatabase.ts +++ b/server/services/icons/iconDatabase.ts @@ -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,