Skip to content

Commit 28d1971

Browse files
committed
✏️ modification du nombre negatif
1 parent f544e59 commit 28d1971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Widgets/RecentNumbers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function run()
7777
'count' => $totalViews,
7878
'increase' => $difference > 0,
7979
'decreased' => $difference < 0,
80-
'current' => $differenceViews,
80+
'current' => max($differenceViews, 0),
8181
],
8282
]);
8383
}

0 commit comments

Comments
 (0)