diff --git a/app/Repositories/Tag/TagRepository.php b/app/Repositories/Tag/TagRepository.php index 3c9b9728c3..d48d277ea6 100644 --- a/app/Repositories/Tag/TagRepository.php +++ b/app/Repositories/Tag/TagRepository.php @@ -343,6 +343,9 @@ class TagRepository implements TagRepositoryInterface if ($diff != 0) { $step = $amountDiff / $diff; } + if ($step == 0) { + $step = 1; + } $extra = round($amount / $step);