Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
megoxv committed Sep 7, 2024
1 parent d8435bf commit 36dd479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/FilamentWithdrawalFormBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ public function send(array $data): void
// Check if user is authenticated and validate wallet balance
if (auth('accounts')->check()) {
$user = auth('accounts')->user();
$wallet = $user->getWallet();
$wallet = $user->wallet;

if ($amount > $wallet->balanceFloatNum) {
if ($amount > $wallet->balance) {
Notification::make()
->title(trans('filament-withdrawals::messages.withdrawal_requests.notification.balance_is_not_enough.title'))
->body(trans('filament-withdrawals::messages.withdrawal_requests.notification.balance_is_not_enough.body'))
Expand Down

0 comments on commit 36dd479

Please sign in to comment.