🆙 More fixes 🆙
This commit is contained in:
1 parent
4a359a4fc9
commit
f2ba190a47
7 files changed
+32
-8
No files matched your search
@@ -119,7 +119,9 @@ class User extends Authenticatable implements FilamentUser, HasName
|
||||
default => 0,
|
||||
};
|
||||
|
||||
return $this->currencies->where('type', $type)->first()?->amount ?? 0;
|
||||
$currency = $this->currencies->where('type', $type)->first();
|
||||
|
||||
return $currency ? $currency->amount : 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user