mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-11-20 14:27:48 +00:00
results modal
This commit is contained in:
1 parent
f29df1afb6
commit
23ae850206
4 files changed
+151
-35
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user