From c166844a329034d7492f373d8a264d724132ae7e Mon Sep 17 00:00:00 2001 From: BeritJanssen Date: Tue, 23 Jan 2024 16:20:41 +0100 Subject: [PATCH] fix: refer to session.id from finalizeSession --- frontend/src/API.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/API.js b/frontend/src/API.js index 0e48c99f9..7466f515e 100644 --- a/frontend/src/API.js +++ b/frontend/src/API.js @@ -131,7 +131,7 @@ export const getNextRound = async ({ session }) => { export const finalizeSession = async ({ session, participant }) => { try { const response = await axios.post( - API_BASE_URL + URLS.session.finalize(session.current.id), + API_BASE_URL + URLS.session.finalize(session.id), qs.stringify({ csrfmiddlewaretoken: participant.csrf_token, })