Skip to content

Commit

Permalink
Peer review accepting threshold is disabled if accepting strategy is …
Browse files Browse the repository at this point in the history
…manual review everything
  • Loading branch information
Maija Y committed Nov 22, 2023
1 parent a0f1386 commit 4d40b85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/cms/src/components/PeerReviewEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,10 @@ const PeerReviewEditor: React.FC<PeerReviewEditorProps> = ({
step="0.01"
min={0}
required
disabled={
parsedPeerReviewConfig.accepting_strategy.toString() ===
"ManualReviewEverything"
}
value={parsedPeerReviewConfig.accepting_threshold}
onChangeByValue={(value) => {
handlePeerReviewValueChange(value, "accepting_threshold")
Expand Down

0 comments on commit 4d40b85

Please sign in to comment.