fix: type errors

This commit is contained in:
Nathnael
2026-07-22 07:29:16 +00:00
parent 1da08131ea
commit 82c5fb88dc
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ export function StepDocuments({ form }: { form: BookingForm }) {
) )
: null; : null;
const active = const active =
(targetType && profiles.find((p) => p.type === targetType)) ?? (targetType ? profiles.find((p) => p.type === targetType) : undefined) ??
profiles[0]; profiles[0];
return active?.licenseFiles ?? []; return active?.licenseFiles ?? [];
})(); })();

View File

@@ -82,7 +82,7 @@ export function StepDocuments({
) )
: null; : null;
const active = const active =
(targetType && profiles.find((p) => p.type === targetType)) ?? (targetType ? profiles.find((p) => p.type === targetType) : undefined) ??
profiles[0]; profiles[0];
return active?.licenseFiles ?? []; return active?.licenseFiles ?? [];
})(); })();