From 27581fa776c2b5bd148ab143c9de7b8ae92c4f90 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 30 Aug 2022 08:57:44 -0500 Subject: [PATCH] Ads: fix expiry filter logic --- app/soapbox/queries/ads.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/queries/ads.ts b/app/soapbox/queries/ads.ts index 91c7da2fb..86dc1e86f 100644 --- a/app/soapbox/queries/ads.ts +++ b/app/soapbox/queries/ads.ts @@ -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,