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 2f212f7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 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
4 changes: 2 additions & 2 deletions www/templates/account/plans/upgrade-plan.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
<tbody>
<tr>
<th scope="col">Monthly Test Runs</th>
<td>150</td>
<td>300</td>
<td>As per plan</td>
<td>As per contract</td>
</tr>
Expand Down Expand Up @@ -271,7 +271,7 @@

<tr>
<th scope="col">Test History</th>
<td>60 days</td>
<td>13 Months</td>
<td>13 Months</td>
<td>Up to 7 years</td>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions www/templates/account/signup/step-1.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
</tr>
<tr>
<th scope="col">Monthly Test Runs</th>
<td>150</td>
<td>300</td>
<td>As per plan</td>
<td>As per contract</td>
</tr>
Expand Down Expand Up @@ -255,7 +255,7 @@

<tr>
<th scope="col">Test History</th>
<td>60 days</td>
<td>13 Months</td>
<td>13 Months</td>
<td>Up to 7 years</td>
</tr>
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 2f212f7

Please sign in to comment.