Skip to content

Commit

Permalink
fixed calculateBalance
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed Nov 21, 2018
1 parent abb255e commit 94bb97a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Wallet.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function getAvailableBalance(): int
*/
public function calculateBalance(): bool
{
$balance = $this->getBalanceAttribute();
$balance = $this->getAvailableBalance();
WalletProxy::set($this->getKey(), $balance);
$this->attributes['balance'] = $balance;

Expand Down

0 comments on commit 94bb97a

Please sign in to comment.