Skip to content

Commit

Permalink
Also enable for trace question
Browse files Browse the repository at this point in the history
that part was easy
  • Loading branch information
jessitron committed Sep 15, 2024
1 parent e528d61 commit 18a13a8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/BoothGame/analyzeData/TraceQuestion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { HoneycombTeamContext } from "../HoneycombTeamContext";
import { MultipleChoice, MultipleChoiceResult, WhatMultipleChoiceNeedsToKnow } from "./MultipleChoice";
import popOutIndicator from "../../../static/images/arrowSquareUpRight.svg";

const PleaseLookAtTheData = { questionVisible: false };
const LookedAtTheData = { questionVisible: true };
const PleaseLookAtTheData = { questionEnabled: false };
const LookedAtTheData = { questionEnabled: true };

type TraceQuestionState = typeof PleaseLookAtTheData | typeof LookedAtTheData;

Expand Down Expand Up @@ -36,16 +36,16 @@ function TraceQuestionInternal<T>(props: TraceQuestionProps<T>) {
}


const questionAndAnswer = state.questionVisible ? (
const questionAndAnswer =
<MultipleChoice<T>
enabled = {state.questionEnabled}
questionText={<>How many spans in this trace are named 'HTTP POST'?</>}
queryName="span count by name"
queryDefinition={queryDefinition}
dataset={BACKEND_DATASET_NAME}
interpretData={props.interpretData}
moveOn={props.moveForward}
/>
) : null;
/>;

return (
<div>
Expand Down

0 comments on commit 18a13a8

Please sign in to comment.