Ads: fix expiry filter logic

This commit is contained in:
Alex Gleason 2022-08-30 08:57:44 -05:00
parent 7d5a8ecf6f
commit 27581fa776
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -23,7 +23,7 @@ export default function useAds() {
}); });
// Filter out expired ads. // Filter out expired ads.
const data = result.data?.filter(isExpired); const data = result.data?.filter(ad => !isExpired(ad));
return { return {
...result, ...result,