mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
fix: type errors
This commit is contained in:
@@ -71,7 +71,7 @@ export function StepDocuments({ form }: { form: BookingForm }) {
|
||||
)
|
||||
: null;
|
||||
const active =
|
||||
(targetType && profiles.find((p) => p.type === targetType)) ??
|
||||
(targetType ? profiles.find((p) => p.type === targetType) : undefined) ??
|
||||
profiles[0];
|
||||
return active?.licenseFiles ?? [];
|
||||
})();
|
||||
|
||||
@@ -82,7 +82,7 @@ export function StepDocuments({
|
||||
)
|
||||
: null;
|
||||
const active =
|
||||
(targetType && profiles.find((p) => p.type === targetType)) ??
|
||||
(targetType ? profiles.find((p) => p.type === targetType) : undefined) ??
|
||||
profiles[0];
|
||||
return active?.licenseFiles ?? [];
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user