feat(sponsor): quick setup with guest drivers, shared rental cars, rotating heats and A/B finals (1.63.0)
This commit is contained in:
1 parent
6142b14e47
commit
d0a5df6992
19 files changed
+511
-54
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user