Don't show "item needs models" for invalid pets

This commit is contained in:
Emi Matchu 2021-02-09 22:56:10 -08:00
parent 4aade5782f
commit 27f441df36

View file

@ -760,22 +760,25 @@ function ItemPageOutfitPreview({ itemId }) {
{ {
// Wait for us to start _requesting_ the appearance, and _then_ // Wait for us to start _requesting_ the appearance, and _then_
// for it to load, and _then_ check compatibility. // for it to load, and _then_ check compatibility.
!loadingGQL && !appearance.loading && !isCompatible && ( !loadingGQL &&
<Tooltip !appearance.loading &&
label={ petState.isValid &&
couldProbablyModelMoreData !isCompatible && (
? "Item needs models" <Tooltip
: "Not compatible" label={
} couldProbablyModelMoreData
placement="top" ? "Item needs models"
> : "Not compatible"
<WarningIcon }
color={errorColor} placement="top"
transition="color 0.2" >
marginLeft="2" <WarningIcon
/> color={errorColor}
</Tooltip> transition="color 0.2"
) marginLeft="2"
/>
</Tooltip>
)
} }
</Box> </Box>
</Box> </Box>