Ads: fix expiry filter logic
This commit is contained in:
parent
7d5a8ecf6f
commit
27581fa776
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue