diff --git a/frontend/src/ksp-submit-api.ts b/frontend/src/ksp-submit-api.ts index 5d718aa..17a7ced 100644 --- a/frontend/src/ksp-submit-api.ts +++ b/frontend/src/ksp-submit-api.ts @@ -107,6 +107,6 @@ export async function grabTaskSummary(): Promise> { } return new Map( - results.tasks.map(r => [mapId(r.id), { id: mapId(r.id), maxPoints: r.max_points, name: r.name, points: r.points, solved: r.points > r.max_points - 0.001, submitted: r.points > 0 }]) + results.tasks.map(r => [mapId(r.id), { id: mapId(r.id), maxPoints: r.max_points, name: r.name, points: r.points ?? 0, solved: r.points > r.max_points - 0.001, submitted: r.points != null }]) ) } diff --git a/server/Ksp.WebServer/appsettings.Development.json b/server/Ksp.WebServer/appsettings.Development.json index 7a06af6..3bc3d28 100644 --- a/server/Ksp.WebServer/appsettings.Development.json +++ b/server/Ksp.WebServer/appsettings.Development.json @@ -7,6 +7,6 @@ } }, "KspProxyConfig": { - "Host": "https://ksp.mff.cuni.cz" + "Host": "https://ksp.mff.cuni.cz", } }