You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 More fixes 🆙
This commit is contained in:
@@ -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