mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 04:08:11 +00:00
fix: type errors
This commit is contained in:
@@ -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 ?? [];
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -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 ?? [];
|
||||||
})();
|
})();
|
||||||
|
|||||||
Reference in New Issue
Block a user