website refactor
This commit is contained in:
@@ -47,7 +47,9 @@ export class RacingRaceFactory {
|
||||
} else {
|
||||
// 40% scheduled (8 out of 20)
|
||||
status = 'scheduled';
|
||||
scheduledAt = this.addDays(this.baseDate, 1 + ((statusMod - 13) * 2));
|
||||
// Ensure scheduled races are always in the future by using current date as reference
|
||||
const now = new Date();
|
||||
scheduledAt = this.addDays(now, 1 + ((statusMod - 13) * 2));
|
||||
}
|
||||
|
||||
const base = {
|
||||
|
||||
Reference in New Issue
Block a user