From 430d4f1a4b3d2304006dfb2736f933d24b1a836a Mon Sep 17 00:00:00 2001 From: nflnkr Date: Sun, 2 Jun 2024 13:12:08 +0300 Subject: [PATCH] send search params when fetching quiz settings --- lib/api/quizRelase.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/quizRelase.ts b/lib/api/quizRelase.ts index 2f241bb..c576894 100644 --- a/lib/api/quizRelase.ts +++ b/lib/api/quizRelase.ts @@ -78,7 +78,7 @@ export async function getData(quizId: string): Promise<{ error?: AxiosError; }> { try { - const { data, headers } = await axios(domain + `/answer/settings`, { + const { data, headers } = await axios(domain + `/answer/settings${window.location.search}`, { method: "POST", headers: { "X-Sessionkey": SESSIONS,