Skip to content

Commit

Permalink
fix(stable): wacky sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
SabreCat committed Apr 6, 2020
1 parent 903851f commit ba61da4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/client/src/components/inventory/stable/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
</div>
</div>
<div
v-if="petGroup.key !== 'specialPets' && petGroup.key !== 'wackyPets'"
v-if="petGroup.key !== 'specialPets' && !(petGroup.key === 'wackyPets' && selectedSortBy !== 'sortByColor')"
class="btn btn-flat btn-show-more"
@click="setShowMore(petGroup.key)"
>
Expand Down Expand Up @@ -790,7 +790,7 @@ export default {
const pets = this.listAnimals(animalGroup, 'pet', hideMissing, sortBy, searchText);
// Don't group special
if (animalGroup.key === 'specialPets' || animalGroup.key === 'wackyPets') {
if (animalGroup.key === 'specialPets' || (animalGroup.key === 'wackyPets' && sortBy !== 'sortByColor')) {
return { none: pets };
}
Expand Down

0 comments on commit ba61da4

Please sign in to comment.