Oops, fix bug in pet appearance support!

Right, oops, this logic was saying "Restricts: None" whenever the appearance restricted _zero or one_ zones, lol 😅
This commit is contained in:
Emi Matchu 2021-06-29 00:10:42 -07:00
parent b0672d589f
commit c8d15fa812

View file

@ -206,7 +206,7 @@ function PosePickerSupport({
</MetadataValue> </MetadataValue>
<MetadataLabel>Restricts:</MetadataLabel> <MetadataLabel>Restricts:</MetadataLabel>
<MetadataValue maxHeight="64" overflowY="auto"> <MetadataValue maxHeight="64" overflowY="auto">
{currentPetAppearance.restrictedZones.length > 1 ? ( {currentPetAppearance.restrictedZones.length > 0 ? (
<UnorderedList> <UnorderedList>
{currentPetAppearance.restrictedZones {currentPetAppearance.restrictedZones
.map((zone) => `${zone.label} (${zone.id})`) .map((zone) => `${zone.label} (${zone.id})`)