This commit is contained in:
parent
1f27befc94
commit
8d2c93aa32
3 changed files with 12 additions and 14 deletions
|
@ -1,5 +1,3 @@
|
|||
import React from 'react';
|
||||
import logo from './logo.svg';
|
||||
import './App.css';
|
||||
import Theme from './utils/Theme';
|
||||
import Routing from './utils/Routing';
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import { FILE } from 'dns';
|
||||
import { SpeedCompetitionCategoryResult } from '../models/Competition';
|
||||
import { Participant } from '../models/Participant';
|
||||
|
||||
|
@ -115,10 +114,9 @@ export class SpeedFlowchart {
|
|||
const finalFirstRoundPairs: SpeedRoundPair[] = [];
|
||||
|
||||
for (let i = 0; i < finalSortedFirstRoundPairs.length; i++) {
|
||||
if (finalSortedFirstRoundPairs[i][0] !== undefined)
|
||||
finalFirstRoundPairs.push(finalSortedFirstRoundPairs[i][0]!);
|
||||
if (finalSortedFirstRoundPairs[i][1] !== undefined)
|
||||
finalFirstRoundPairs.push(finalSortedFirstRoundPairs[i][1]!);
|
||||
const [laneA, laneB] = finalSortedFirstRoundPairs[i];
|
||||
if (laneA !== undefined) finalFirstRoundPairs.push(laneA);
|
||||
if (laneB !== undefined) finalFirstRoundPairs.push(laneB);
|
||||
}
|
||||
|
||||
// push the first round to all data
|
||||
|
|
|
@ -12,6 +12,7 @@ export default function PageTemplate(props: { children: JSX.Element }) {
|
|||
|
||||
return (
|
||||
<ContextWrapper>
|
||||
<LocalizationProviderWrapper>
|
||||
<Container
|
||||
sx={{ marginTop: '50px' }}
|
||||
className='root-container'
|
||||
|
@ -19,6 +20,7 @@ export default function PageTemplate(props: { children: JSX.Element }) {
|
|||
>
|
||||
{children}
|
||||
</Container>
|
||||
</LocalizationProviderWrapper>
|
||||
</ContextWrapper>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue