diff --git a/app/Models/UserProfile.php b/app/Models/UserProfile.php index 82eed55..de5f13f 100644 --- a/app/Models/UserProfile.php +++ b/app/Models/UserProfile.php @@ -37,7 +37,7 @@ protected function formattedBirthDate(): Attribute protected function genderLabel(): Attribute { return Attribute::make( - get: fn () => $this->gender->label(), + get: fn () => $this->gender?->label(), ); }