Skip to content

Commit

Permalink
Update awards.md (#24)
Browse files Browse the repository at this point in the history
* Update awards.md

Landing rate is negative value

* Update awards.md
  • Loading branch information
MichaelPortelas authored Dec 24, 2024
1 parent a6464cc commit 76173ae
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/developers/awards.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,9 @@ public function check($landing_rate = null): bool
{
// Have the default landing rate if it hasn't been set in the admin
// It's best to make sure you set a default value if you're using it
if(!$landing_rate) {
$landing_rate = 200;
}
$landing_rate ??= -200;

if($this->user->last_pirep->landing_rate <= (int) $landing_rate) {
if($this->user->last_pirep->landing_rate >= (int) $landing_rate) {
return true;
}

Expand Down

0 comments on commit 76173ae

Please sign in to comment.