feat(sponsor): quick setup with guest drivers, shared rental cars, rotating heats and A/B finals (1.63.0)

This commit is contained in:
larssand committed 2026-11-05 18:31:57 +01:00
1 parent 6142b14e47
commit d0a5df6992
19 files changed
+511 -54

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ export function getDriverProfileId(driver) {
export function getDriverProfileGroups(state) {
const groups = new Map();
(Array.isArray(state?.drivers) ? state.drivers : []).forEach((driver) => {
(Array.isArray(state?.drivers) ? state.drivers : []).filter((driver) => !driver.guestEventId).forEach((driver) => {
const profileId = getDriverProfileId(driver);
const group = groups.get(profileId) || { id: profileId, drivers: [] };
group.drivers.push(driver);