Skip to content

Commit d6c01c1

Browse files
committed
Changed fallback value for remaining runs
1 parent 0edcb17 commit d6c01c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

www/lighthouse_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
$current_user = $request_context->getUser();
1111
$is_paid = !is_null($current_user) ? $current_user->isPaid() : false;
1212
$is_logged_in = Util::getSetting('cp_auth') && (!is_null($request_context->getClient()) && $request_context->getClient()->isAuthenticated());
13-
$remaining_runs = (isset($request_context) && !is_null($request_context->getUser())) ? $request_context->getUser()->getRemainingRuns() : 150;
13+
$remaining_runs = (isset($request_context) && !is_null($request_context->getUser())) ? $request_context->getUser()->getRemainingRuns() : 0;
1414
$hasNoRunsLeft = $is_logged_in ? (int)$remaining_runs <= 0 : false;
1515

1616
$headless = false;

www/webvitals.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
$current_user = $request_context->getUser();
1212
$is_paid = !is_null($current_user) ? $current_user->isPaid() : false;
1313
$is_logged_in = Util::getSetting('cp_auth') && (!is_null($request_context->getClient()) && $request_context->getClient()->isAuthenticated());
14-
$remaining_runs = (isset($request_context) && !is_null($request_context->getUser())) ? $request_context->getUser()->getRemainingRuns() : 150;
14+
$remaining_runs = (isset($request_context) && !is_null($request_context->getUser())) ? $request_context->getUser()->getRemainingRuns() : 0;
1515
$hasNoRunsLeft = $is_logged_in ? (int)$remaining_runs <= 0 : false;
1616

1717

0 commit comments

Comments
 (0)