fix PosePicker PetState debug output

This commit is contained in:
Matt Dunn-Rankin 2020-05-02 22:40:34 -07:00
parent fb902e49f8
commit 2f8a4df27b

View file

@ -241,7 +241,12 @@ function PoseButton({ pose, onChange, inputRef }) {
overflow="hidden" overflow="hidden"
width="50px" width="50px"
height="50px" height="50px"
title={window.location.hostname.includes("localhost") && `#${pose.id}`} title={
// A lil debug output, so that we can quickly identify glitched
// PetStates and manually mark them as glitched!
window.location.hostname.includes("localhost") &&
`#${pose.petStateId}`
}
position="relative" position="relative"
className={css` className={css`
transform: scale(0.8); transform: scale(0.8);
@ -295,13 +300,14 @@ function EmojiImage({ src, "aria-label": ariaLabel }) {
} }
function usePoses(outfitState) { function usePoses(outfitState) {
const { speciesId, colorId, emotion, genderPresentation } = outfitState; const { speciesId, colorId } = outfitState;
const { loading, error, data } = useQuery( const { loading, error, data } = useQuery(
gql` gql`
query PosePicker($speciesId: ID!, $colorId: ID!) { query PosePicker($speciesId: ID!, $colorId: ID!) {
petAppearances(speciesId: $speciesId, colorId: $colorId) { petAppearances(speciesId: $speciesId, colorId: $colorId) {
id id
petStateId
genderPresentation genderPresentation
emotion emotion
approximateThumbnailUrl approximateThumbnailUrl