Skip to content

Commit

Permalink
fix: disable next button when no HARE has been selected yet
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterlukasse committed Dec 16, 2022
1 parent bd94bf1 commit d8fef88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Analysis/GWASV2/GWASContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ const GWASContainer = () => {
};

let nextButtonEnabled = true;
if (state.currentStep === 0 && !state.selectedStudyPopulationCohort) {
nextButtonEnabled = false;
}
if (state.currentStep === 1 && !state.outcome) {
// step specific conditions where progress to next step needs to be blocked:
if ((state.currentStep === 0 && !state.selectedStudyPopulationCohort)
|| (state.currentStep === 1 && !state.outcome)
|| (state.currentStep === 3 && !state.selectedHare.concept_value)) {
nextButtonEnabled = false;
}

Expand Down

0 comments on commit d8fef88

Please sign in to comment.