Skip to content

Commit

Permalink
Fixing withdraw transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
depsimon committed Apr 5, 2018
1 parent ec6a3f3 commit 95e74f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HasWallet.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function withdraw($amount, $type = 'withdraw', $meta = [], $shouldAccept
$accepted = $shouldAccept ? $this->canWithdraw($amount) : true;

if ($accepted) {
$this->wallet->balance += $amount;
$this->wallet->balance -= $amount;
$this->wallet->save();
}

Expand Down

0 comments on commit 95e74f0

Please sign in to comment.