Skip to content

Commit

Permalink
fix: fixed volunteer supply that had been fulfilled displaying on she…
Browse files Browse the repository at this point in the history
…lter page
  • Loading branch information
MatheusDubin committed May 10, 2024
1 parent b0f7f98 commit 3ae55c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Shelter/Shelter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Shelter = () => {
}, [shelters.shelterSupplies]);

const volunteerTags: IUseShelterDataSupply[] = useMemo(() => {
return shelter?.shelterSupplies?.filter((s) => getCategoriesToFilterVolunteers().some(c => c.includes(s.supply?.supplyCategory?.name?.toLowerCase()))).reverse()
return shelter?.shelterSupplies?.filter((s) => getCategoriesToFilterVolunteers().some(c => c.includes(s.supply?.supplyCategory?.name?.toLowerCase())) && s.priority > SupplyPriority.Remaining).reverse()
}, [shelter.shelterSupplies])

const { availability, className: availabilityClassName } =
Expand Down

0 comments on commit 3ae55c8

Please sign in to comment.