Skip to content
Snippets Groups Projects
Commit 79c56883 authored by Victor Löfgren's avatar Victor Löfgren
Browse files

Fix problem with judge not be able to add scores

parent e87a2607
No related branches found
No related tags found
No related merge requests found
Pipeline #48184 passed with warnings
...@@ -42,7 +42,7 @@ const JudgeScoreDisplay = ({ teamIndex, activeSlide }: ScoreDisplayProps) => { ...@@ -42,7 +42,7 @@ const JudgeScoreDisplay = ({ teamIndex, activeSlide }: ScoreDisplayProps) => {
/** Edit the points for an answered question */ /** Edit the points for an answered question */
const handleEditScore = async (newScore: number, questionId: number) => { const handleEditScore = async (newScore: number, questionId: number) => {
await axios await axios
.put(`/api/competitions/${currentCompetititonId}/teams/${currentTeam.id}/answers/question_scores/${questionId}`, { .put(`/api/competitions/${currentCompetititonId}/teams/${currentTeam.id}/scores/${questionId}`, {
score: newScore, score: newScore,
}) })
.then(() => dispatch(getPresentationCompetition(currentCompetititonId.toString()))) .then(() => dispatch(getPresentationCompetition(currentCompetititonId.toString())))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment