From 4b4288ed000a14746ca37f497f813da48c5549b1 Mon Sep 17 00:00:00 2001 From: HBiede <6586509+hbiede@users.noreply.github.com> Date: Thu, 9 Nov 2023 05:51:57 -0700 Subject: [PATCH] Fix overwriting brands check (#1562) --- lib/create-icon-set-from-fontawesome6.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }