diff --git a/src/HelmetUtils.js b/src/HelmetUtils.js index 5d072220..3dc2d50f 100644 --- a/src/HelmetUtils.js +++ b/src/HelmetUtils.js @@ -152,7 +152,11 @@ const getTagsFromPropsList = (tagName, primaryAttributes, propsList) => { } } - if (!primaryAttributeKey || !tag[primaryAttributeKey]) { + if ( + !primaryAttributeKey || + !tag[primaryAttributeKey] || + typeof tag[primaryAttributeKey] !== "string" + ) { return false; }