Skip to content

Commit

Permalink
πŸ› Bug - fixed wrong visual diff heatmap showing
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen Melbourne committed Oct 29, 2020
1 parent e8d03ca commit 0d8a9b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Http/Controllers/VisualDiffsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ public function __invoke(Request $request, Website $website)
if ($result->count() !== 2) {
return null;
}

$previous = $result->first();
$current = $result->last();
$previous = $result->last();
$current = $result->first();

if (!$previous->diff_found&& !$current->diff_found) {
return null;
Expand Down

0 comments on commit 0d8a9b6

Please sign in to comment.