From 7c3298d5b2e7a21b333ce307a6f21cf6134c0440 Mon Sep 17 00:00:00 2001 From: Matchu Date: Sat, 27 Nov 2021 20:01:38 -0800 Subject: [PATCH] Oops, fix SVG message and build error Ah hm, not sure why this only showed up once I tried a prod deploy, but I declared `hiResMode` twice in there, because we already had fixed this bug for item layers but not pet layers! In this change, I fix the duplicate `hiResMode` declaration, and update the new pet layers message to match the item layers message. --- src/app/WardrobePage/OutfitKnownGlitchesBadge.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/WardrobePage/OutfitKnownGlitchesBadge.js b/src/app/WardrobePage/OutfitKnownGlitchesBadge.js index e9beb55..fae9235 100644 --- a/src/app/WardrobePage/OutfitKnownGlitchesBadge.js +++ b/src/app/WardrobePage/OutfitKnownGlitchesBadge.js @@ -103,7 +103,6 @@ function OutfitKnownGlitchesBadge({ appearance }) { // Look for items with the OFFICIAL_SVG_IS_INCORRECT glitch. Only show this // if hi-res mode is on, because otherwise it doesn't affect the user anyway! - const [hiResMode] = useLocalStorage("DTIHiResMode", false); if (hiResMode) { for (const item of items) { const itemHasOfficialSvgIsIncorrect = item.appearance.layers.some((l) => @@ -246,9 +245,9 @@ function OutfitKnownGlitchesBadge({ appearance }) { glitchMessages.push( There's a glitch in the art for this pet's {layer.zone.label}{" "} - zone that prevents us from showing the full-scale SVG version of the - image. Instead, we're showing a PNG, which might look a bit blurry - on larger screens. + zone that prevents us from showing the SVG image for Hi-Res Mode. + Instead, we're showing a PNG, which might look a bit blurry on + larger screens. ); }