Skip to content

Commit

Permalink
better delta-rounding fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iesus committed Feb 7, 2018
1 parent 8b818d3 commit 4fab06a
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ public function sveaOrderHasErrors($sveaOrder, $quote, $response, $tries = 0)
return true;
}

if(
$quote->collectTotals()->save() &&
!$this->sveaOrderHasErrors($sveaOrder, $quote, $response, $tries + 1)
) {
if(!$this->sveaOrderHasErrors($sveaOrder, $quote->collectTotals(), $response, $tries + 1)) {
$quote->save();

return false;
}
Expand Down

0 comments on commit 4fab06a

Please sign in to comment.