diff --git a/src/app/WardrobePage/OutfitControls.js b/src/app/WardrobePage/OutfitControls.js index 9c1c62d..432a06e 100644 --- a/src/app/WardrobePage/OutfitControls.js +++ b/src/app/WardrobePage/OutfitControls.js @@ -307,7 +307,7 @@ function OutfitKnownGlitchesBadge({ appearance }) { // Look for items with the OFFICIAL_SVG_IS_INCORRECT glitch. for (const item of appearance.items) { const itemHasOfficialSvgIsIncorrect = item.appearance.layers.some((l) => - l.knownGlitches.includes("OFFICIAL_SVG_IS_INCORRECT") + (l.knownGlitches || []).includes("OFFICIAL_SVG_IS_INCORRECT") ); if (itemHasOfficialSvgIsIncorrect) { glitchMessages.push( diff --git a/src/app/components/HTML5Badge.js b/src/app/components/HTML5Badge.js index 3b7909e..19960af 100644 --- a/src/app/components/HTML5Badge.js +++ b/src/app/components/HTML5Badge.js @@ -138,7 +138,7 @@ export function layerUsesHTML5(layer) { layer.canvasMovieLibraryUrl || // If this glitch is applied, then `svgUrl` will be null, but there's still // an HTML5 manifest that the official player can render. - layer.knownGlitches.includes("OFFICIAL_SVG_IS_INCORRECT") + (layer.knownGlitches || []).includes("OFFICIAL_SVG_IS_INCORRECT") ); }