diff --git a/assets/components/tracking/watchlist/WatchlistCard.tsx b/assets/components/tracking/watchlist/WatchlistCard.tsx index ea55f40..b7a66e7 100644 --- a/assets/components/tracking/watchlist/WatchlistCard.tsx +++ b/assets/components/tracking/watchlist/WatchlistCard.tsx @@ -80,7 +80,7 @@ export function WatchlistCard({watchlist, onUpdateWatchlist, connectors, onDelet dataSource={[{ domains: watchlist.domains.map(d => getUpdatedAt() - ->diff(new \DateTimeImmutable())->days >= 7 - || (($fromUser || ($this->getUpdatedAt() + return $this->getUpdatedAt()->diff(new \DateTimeImmutable())->days >= 7 + || $this->getDeleted() + ? $fromUser + : ( + ($fromUser || ($this->getUpdatedAt() ->diff(new \DateTimeImmutable())->h * 60 + $this->getUpdatedAt() - ->diff(new \DateTimeImmutable())->i) >= 50) - && $this->isToBeWatchClosely()) - - || (count(array_intersect($this->getStatus(), ['auto renew period', 'client hold', 'server hold'])) > 0 - && $this->getUpdatedAt()->diff(new \DateTimeImmutable())->days >= 1); + ->diff(new \DateTimeImmutable())->i) >= 50 + ) + && $this->isToBeWatchClosely() + ) + || ( + false == $this->getDeleted() && ( + count(array_intersect($this->getStatus(), ['auto renew period', 'client hold', 'server hold'])) > 0 + && $this->getUpdatedAt()->diff(new \DateTimeImmutable())->days >= 1 + ) + ); } /**