Skip to content

Commit

Permalink
Item price double issue solved #r4th1n
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Aug 8, 2021
1 parent 19b7993 commit 47aa58e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Http/Middleware/Money.php
Expand Up @@ -59,6 +59,8 @@ public function handle($request, Closure $next)
$money_format = Str::replaceFirst('.', '', $money_format);
}
}

$money_format = (double) $money_format;
}

$amount = $this->getAmount($money_format, $currency_code);
Expand Down

0 comments on commit 47aa58e

Please sign in to comment.