From e09bec06e23f0a640618b514e124bd890e6ca523 Mon Sep 17 00:00:00 2001 From: am-bean <88600346+am-bean@users.noreply.github.com> Date: Fri, 17 May 2024 11:29:50 +0100 Subject: [PATCH] Changed prolificId default to string type --- .../AnnotationInterfaces/Contexts/ChatWithInstructions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/web/src/new_front/components/CreateSamples/CreateSamples/AnnotationInterfaces/Contexts/ChatWithInstructions.tsx b/frontends/web/src/new_front/components/CreateSamples/CreateSamples/AnnotationInterfaces/Contexts/ChatWithInstructions.tsx index 4e889ddf..dd5a4285 100644 --- a/frontends/web/src/new_front/components/CreateSamples/CreateSamples/AnnotationInterfaces/Contexts/ChatWithInstructions.tsx +++ b/frontends/web/src/new_front/components/CreateSamples/CreateSamples/AnnotationInterfaces/Contexts/ChatWithInstructions.tsx @@ -54,7 +54,7 @@ const ChatWithInstructions: FC< const location = useLocation(); const queryParams = queryString.parse(location.search); let treatmentId = queryParams.treatmentId ? queryParams.treatmentId : "2"; - let prolificId = queryParams.assignmentId ? queryParams.assignmentId : Math.floor(100000 + Math.random() * 900000); + let prolificId = queryParams.assignmentId ? queryParams.assignmentId : Math.floor(100000 + Math.random() * 900000).toString(); function getTreatmentValue(treatmentId: TreatmentId): string { switch (treatmentId) {