fix(wallets): capture $type in the deposit/withdraw action closure #2

Merged
soheilkhaledabadi merged 1 commits from feat/persian-panel-fixes-and-model-tweaks into main 2026-09-08 20:45:32 +00:00

View File

@@ -83,7 +83,7 @@ class WalletsTable
->maxLength(500)
->rows(2),
])
->action(function (Wallet $record, array $data, WalletService $walletService): void {
->action(function (Wallet $record, array $data, WalletService $walletService) use ($type): void {
$amount = (int) $data['amount'];
$description = filled($data['description'] ?? null) ? $data['description'] : null;