results modal

This commit is contained in:
rngsurrounded
2025-03-04 02:24:40 +09:00
parent f29df1afb6
commit 23ae850206
4 changed files with 151 additions and 35 deletions
@@ -14,7 +14,7 @@ export const getCompetition = async (id: string) => {
};
export const getCompetitionResults = async (id: string) => {
return await userFetch<CompetitionResult>(`/competitions/${id}/results`);
return await userFetch<CompetitionResult[]>(`/competitions/${id}/results`);
}
export const startCompetition = async (competitionId: string) => {
@@ -28,4 +28,5 @@ export enum CompetitionParticipationType {
export interface CompetitionResult {
task_name: string;
result: number;
max_points: number;
}