Skip to content

Commit

Permalink
The general takeaway will not appear if a completed dataset is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan-CTL committed Sep 25, 2024
1 parent f95a31a commit 809f588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion media/js/src/simulationTwo/simulationTwo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const SimulationTwo = () => {
// If the user has completed the first question
// for the current dataset, show the second with a
// general question.
if (checkComplete() === 1)
if (checkComplete() === 1 && !isComplete[choice])
{
return <MultipleChoiceQuestion2
{...{choice, isSubmitted, setIsSubmitted, handleStartOver,
Expand Down

0 comments on commit 809f588

Please sign in to comment.