Skip to content

Commit 39aa9b5

Browse files
committed
swap withdraw&forceWithdraw in gift
1 parent efc5403 commit 39aa9b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Traits/HasGift.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ public function gift(Wallet $to, Product $product, bool $force = false): Transfe
4646
* Santa pays taxes
4747
*/
4848
if ($force) {
49-
$withdraw = $santa->withdraw($amount + $fee, $meta);
50-
} else {
5149
$withdraw = $santa->forceWithdraw($amount + $fee, $meta);
50+
} else {
51+
$withdraw = $santa->withdraw($amount + $fee, $meta);
5252
}
5353

5454
$deposit = $product->deposit($amount, $meta);

0 commit comments

Comments
 (0)