From 1617b82b1829658142470c905fdb3e50c0de037d Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Sat, 6 Apr 2024 03:26:36 -0700 Subject: [PATCH] Don't use the pets.neopets.com asset proxy anymore Ah right, now that HTTPS works, we can skip this! --- src/app/ItemPage/SpeciesFacesPicker.js | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/app/ItemPage/SpeciesFacesPicker.js b/src/app/ItemPage/SpeciesFacesPicker.js index 7864fa6..ce1a0a4 100644 --- a/src/app/ItemPage/SpeciesFacesPicker.js +++ b/src/app/ItemPage/SpeciesFacesPicker.js @@ -30,7 +30,11 @@ function SpeciesFacesPicker({ // the query all the time, and have Apollo happen to satisfy it fast? // The semantics of returning our colorful random set could be weird… const selectedColorIsBasic = colorIsBasic(selectedColorId); - const { loading: loadingGQL, error, data } = useQuery( + const { + loading: loadingGQL, + error, + data, + } = useQuery( gql` query SpeciesFacesPicker($selectedColorId: ID!) { color(id: $selectedColorId) { @@ -52,11 +56,11 @@ function SpeciesFacesPicker({ variables: { selectedColorId }, skip: selectedColorId == null || selectedColorIsBasic, onError: (e) => console.error(e), - } + }, ); const allBodiesAreCompatible = compatibleBodies.some( - (body) => body.representsAllBodies + (body) => body.representsAllBodies, ); const compatibleBodyIds = compatibleBodies.map((body) => body.id); @@ -64,7 +68,7 @@ function SpeciesFacesPicker({ const allSpeciesFaces = DEFAULT_SPECIES_FACES.map((defaultSpeciesFace) => { const providedSpeciesFace = speciesFacesFromData.find( - (f) => f.species.id === defaultSpeciesFace.speciesId + (f) => f.species.id === defaultSpeciesFace.speciesId, ); if (providedSpeciesFace) { return { @@ -259,10 +263,10 @@ const SpeciesFaceOption = React.memo( `} > ); - } + }, ); /**