🆙 More fixes 🆙

This commit is contained in:
Remco
2026-01-19 20:56:16 +01:00
parent 4a359a4fc9
commit f2ba190a47
7 changed files with 32 additions and 8 deletions
+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;
}
/**