mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 15:37:10 +00:00
checking
This commit is contained in:
@@ -45,6 +45,7 @@ const CompetitionSession = () => {
|
||||
}
|
||||
|
||||
const handleSubmit = () => {
|
||||
console.log(currentTask, competitionId, answer)
|
||||
if (!currentTask || !competitionId || !answer.trim()) return;
|
||||
submitMutation.mutate();
|
||||
};
|
||||
|
||||
@@ -20,7 +20,7 @@ export const submitTaskSolution = async (
|
||||
solution: string | File
|
||||
) => {
|
||||
const endpoint = `/competitions/${competitionId}/tasks/${taskId}/submit`;
|
||||
|
||||
console.log("SUBMIT ", taskId, competitionId, solution)
|
||||
if (typeof solution === 'string') {
|
||||
return await userFetch(endpoint, {
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user