Skip to content

Commit

Permalink
Fix wrong variable which was not renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcj committed Sep 19, 2023
1 parent 73b959e commit b4baf75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/Twig/TwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public function printtimediff(float $start, ?float $end = null): string
public function printelapsedminutes(float $start, float $end): string
{
$minutesElapsed = floor(($end - $start)/60);
if ($minutesRemaining < 1) {
if ($minutesElapsed < 1) {
return 'started less than 1 minute ago';
} elseif ($minutesElapsed == 1) {
return 'started 1 minute ago';
Expand Down

0 comments on commit b4baf75

Please sign in to comment.