diff --git a/lib/create-icon-set-from-fontawesome6.js b/lib/create-icon-set-from-fontawesome6.js index 5ec859b03..f1119ae2f 100644 --- a/lib/create-icon-set-from-fontawesome6.js +++ b/lib/create-icon-set-from-fontawesome6.js @@ -30,7 +30,7 @@ function createFA6iconSet(glyphMap, metadata = {}, pro = false) { function glyphValidator(glyph, style) { let family = style === 'brand' ? 'brands' : style; - family = style === 'sharpSolid' ? 'sharp-solid' : style; + family = style === 'sharpSolid' ? 'sharp-solid' : family; if (metadataKeys.indexOf(family) === -1) return false; return metadata[family].indexOf(glyph) !== -1; }