Merge branch 'ads-expiry-fix' into 'develop'

Ads: fix expiry filter logic

See merge request soapbox-pub/soapbox-fe!1757
This commit is contained in:
Alex Gleason 2022-08-30 14:11:21 +00:00
commit dd8aabab50

View file

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