Skip to content

Commit

Permalink
Changed fallback value for remaining runs
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoli79 committed Nov 28, 2024
1 parent 0edcb17 commit d6c01c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion www/lighthouse_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
$current_user = $request_context->getUser();
$is_paid = !is_null($current_user) ? $current_user->isPaid() : false;
$is_logged_in = Util::getSetting('cp_auth') && (!is_null($request_context->getClient()) && $request_context->getClient()->isAuthenticated());
$remaining_runs = (isset($request_context) && !is_null($request_context->getUser())) ? $request_context->getUser()->getRemainingRuns() : 150;
$remaining_runs = (isset($request_context) && !is_null($request_context->getUser())) ? $request_context->getUser()->getRemainingRuns() : 0;
$hasNoRunsLeft = $is_logged_in ? (int)$remaining_runs <= 0 : false;

$headless = false;
Expand Down
2 changes: 1 addition & 1 deletion www/webvitals.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
$current_user = $request_context->getUser();
$is_paid = !is_null($current_user) ? $current_user->isPaid() : false;
$is_logged_in = Util::getSetting('cp_auth') && (!is_null($request_context->getClient()) && $request_context->getClient()->isAuthenticated());
$remaining_runs = (isset($request_context) && !is_null($request_context->getUser())) ? $request_context->getUser()->getRemainingRuns() : 150;
$remaining_runs = (isset($request_context) && !is_null($request_context->getUser())) ? $request_context->getUser()->getRemainingRuns() : 0;
$hasNoRunsLeft = $is_logged_in ? (int)$remaining_runs <= 0 : false;


Expand Down

0 comments on commit d6c01c1

Please sign in to comment.