Skip to content

Commit

Permalink
fix: delayInSession not working
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrildewit committed Dec 25, 2018
1 parent 37dd35c commit 78ec140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Views.php
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ protected function shouldRecord(): bool
return false;
}

if ($this->sessionDelay && $this->viewSessionHistory->push($this->viewable, $this->sessionDelay)) {
if (!is_null($this->sessionDelay) && !$this->viewSessionHistory->push($this->viewable, $this->sessionDelay)) {
return false;
}

Expand Down

0 comments on commit 78ec140

Please sign in to comment.