diff --git a/src/models/Competition.tsx b/src/models/Competition.tsx index b39cc8c..6110e40 100644 --- a/src/models/Competition.tsx +++ b/src/models/Competition.tsx @@ -28,4 +28,5 @@ export interface RouteNames { export interface SpeedCompetitionCategoryResult extends Competiton { route_names: RouteNames; participants: ParticipantFromApi[]; + route_order: string; } diff --git a/src/pages/SpeedFlowchartPage.tsx b/src/pages/SpeedFlowchartPage.tsx index 84e9d65..bc6f828 100644 --- a/src/pages/SpeedFlowchartPage.tsx +++ b/src/pages/SpeedFlowchartPage.tsx @@ -29,6 +29,7 @@ export default function SpeedFlowchartPage() { r.categorys.filter(cat => cat.GrpId === categoryId)[0].name }`, ); + const flowchartResult = convertResultsToSpeedFlowchartResult(r); console.log(flowchartResult); setFlowchartResult(flowchartResult); @@ -75,6 +76,12 @@ export default function SpeedFlowchartPage() { ))} + + {flowchartResult === undefined && ( + + This competition or category does not have a speed tree! + + )} );