diff --git a/src/components/Experiment.tsx b/src/components/Experiment.tsx index efbe759..fefff68 100644 --- a/src/components/Experiment.tsx +++ b/src/components/Experiment.tsx @@ -16,7 +16,7 @@ import { SessionType, SessionType2, } from "@/utilities/types"; -import Round3 from "./Round"; +import Round from "./Round"; import Intro3 from "./IntroGuess"; function Experiment({ data }: { data: SessionType | SessionType2 }) { @@ -68,7 +68,7 @@ function Experiment({ data }: { data: SessionType | SessionType2 }) { {(data.treatment === "QSR" || data.treatment === "BSR") && phase === Phase.Main && ( - ) { return ; - // } } const defaultSession: Omit = { @@ -43,19 +42,11 @@ export const getServerSideProps: GetServerSideProps<{ sessionData.end_time = JSON.parse(JSON.stringify(sessionData?.end_time)); sessionData.round_parameters = shuffle(sessionData.round_parameters); - // if (sessionData.treatment === "QSR" || sessionData.treatment === "BSR") { - // return { - // props: { - // data: sessionData as SessionType, - // }, - // }; - // } else { return { props: { data: sessionData, }, }; - // } }; function shuffle(array: number[]) { diff --git a/src/utilities/types.ts b/src/utilities/types.ts index d23f32f..9e1c12e 100644 --- a/src/utilities/types.ts +++ b/src/utilities/types.ts @@ -1,4 +1,4 @@ -import { Round, Session } from "@prisma/client"; +import { Session } from "@prisma/client"; export interface SessionType extends Omit< @@ -19,20 +19,9 @@ export interface SessionType2 treatment: "QSR2" | "BSR2"; } -// export type Round2 = Omit< -// Round, -// | "first_draw_blue" -// | "second_draw_blue" -// | "third_draw_blue" -// | "fourth_draw_blue" -// | "fifth_draw_blue" -// | "sixth_draw_blue" -// >; - export enum Phase { Intro = "INTRO", Intro2 = "INTRO2", - // Trial = "TRIAL", Main = "MAIN", Demographics = "DEMO", Gps = "GPS",