Skip to content

Commit

Permalink
fix: is starting soon condition
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed May 14, 2024
1 parent e7633ef commit 1f0688a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Traits/HasProjectStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ public function isArchived(): bool

public function isStartingSoon(): bool
{
return $this->isPublished() && ($this->start->isFuture() || ! $this->organization->EuPlatescIsActive());
return $this->isPublished()
&& ! $this->end->isPast()
&& ($this->start->isFuture() || ! $this->organization->EuPlatescIsActive());
}

public function isClose(): bool
Expand Down

0 comments on commit 1f0688a

Please sign in to comment.