Skip to content

Commit

Permalink
Use existing helper for equality comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Feb 29, 2024
1 parent e28ae7c commit 228e3d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public function hasChildren(): bool
*/
public function isCurrent(): bool
{
return Hyde::currentRoute()->getLink() === $this->destination->getLink();
return $this->destination->is(Hyde::currentRoute());
}

/**
Expand Down

0 comments on commit 228e3d4

Please sign in to comment.