🆙 More fixes 🆙

This commit is contained in:
Remco committed 2026-01-19 20:56:16 +01:00
1 parent 4a359a4fc9
commit f2ba190a47
7 files changed
+32 -8

No files matched your search

+3 -1
View File
@@ -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;
}
/**