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_
// for it to load, and _then_ check compatibility.
!loadingGQL && !appearance.loading && !isCompatible && (
<Tooltip
label={
couldProbablyModelMoreData
? "Item needs models"
: "Not compatible"
}
placement="top"
>
<WarningIcon
color={errorColor}
transition="color 0.2"
marginLeft="2"
/>
</Tooltip>
)
!loadingGQL &&
!appearance.loading &&
petState.isValid &&
!isCompatible && (
<Tooltip
label={
couldProbablyModelMoreData
? "Item needs models"
: "Not compatible"
}
placement="top"
>
<WarningIcon
color={errorColor}
transition="color 0.2"
marginLeft="2"
/>
</Tooltip>
)
}
</Box>
</Box>