diff --git a/src/models/contact.js b/src/models/contact.js index 8c8bbdab..8d68f28b 100644 --- a/src/models/contact.js +++ b/src/models/contact.js @@ -252,7 +252,7 @@ export default class Contact { } // Verify if SVG is valid - if (photoType.startsWith('svg')) { + if (photoType.toLowerCase().startsWith('svg')) { const imageSvg = atob(photoB64Data) const cleanSvg = await sanitizeSVG(imageSvg)