Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion frontend/src/pages/dashboard/DiscoveryMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
unsubscribeCreated()
unsubscribeClaimed()
}
}, [])

Check warning on line 87 in frontend/src/pages/dashboard/DiscoveryMap.tsx

View workflow job for this annotation

GitHub Actions / Frontend

React Hook useEffect has missing dependencies: 'selectedDonation?.id', 't', and 'user.id'. Either include them or remove the dependency array

Check warning on line 87 in frontend/src/pages/dashboard/DiscoveryMap.tsx

View workflow job for this annotation

GitHub Actions / Frontend

React Hook useEffect has missing dependencies: 'selectedDonation?.id', 't', and 'user.id'. Either include them or remove the dependency array

const loadDonations = async () => {
setLoading(true)
Expand Down Expand Up @@ -177,7 +177,8 @@
}

const getMarkerIcon = (donation: Donation) => {
if (donation.status === 'CLAIMED') return claimedIcon
if (donation.status === 'DELIVERED') return urgentIcon
if (donation.status === 'CLAIMED' || donation.status === 'PICKED_UP') return claimedIcon
if (donation.status === 'AVAILABLE') {
const timeRemaining = getTimeRemaining(donation.expiryTime)
if (timeRemaining.urgent) return urgentIcon
Expand Down
Loading