Skip to content

Commit

Permalink
Fix : HasMoney Trait
Browse files Browse the repository at this point in the history
  • Loading branch information
Pharaonic committed Nov 26, 2020
1 parent 28f6576 commit 0990b9e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/HasMoney.php
Expand Up @@ -146,7 +146,6 @@ public function money(string $name, string $currency, float $amount = null)

// Get || Set Money
$money = $this->monies()->where(['name' => $name, 'currency' => $currency])->first();
if (!$amount) return $money;

if ($money) {
$money->update(['amount' => $amount]);
Expand Down

0 comments on commit 0990b9e

Please sign in to comment.