Fix tests
continuous-integration/drone/push Build is failing Details

This commit is contained in:
philipp lang 2024-03-09 00:45:29 +01:00
parent 0575fe4e5c
commit 54cf187ff5
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ class MemberRequest extends FormRequest
$request = request();
/** @var Member */
$member = request()->route('member');
$when = fn () => true === $request->input('has_nami') && ($member !== null || !$member->has_nami);
$when = fn () => true === $request->input('has_nami') && ($member === null || !$member->has_nami);
$validator->sometimes($attribute, $rules, $when);
}
}