diff --git a/app/Member/MemberRequest.php b/app/Member/MemberRequest.php index 54719308..bf2e4c12 100644 --- a/app/Member/MemberRequest.php +++ b/app/Member/MemberRequest.php @@ -155,7 +155,7 @@ class MemberRequest extends FormRequest $request = request(); /** @var Member */ $member = request()->route('member'); - $when = fn () => true === $request->input('has_nami') && (!$member || !$member->has_nami); + $when = fn () => true === $request->input('has_nami') && ($member !== null || !$member->has_nami); $validator->sometimes($attribute, $rules, $when); } }