Skip to content

Commit

Permalink
improved diff button text
Browse files Browse the repository at this point in the history
  • Loading branch information
bekossy committed May 15, 2024
1 parent 975b01f commit fc8ae62
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,12 @@ const EvaluationCompareMode: React.FC<Props> = () => {
</Space>
),
}))}
buttonText={removeCorrectAnswerPrefix(selectedCorrectAnswer[0])}
buttonText={
removeCorrectAnswerPrefix(selectedCorrectAnswer[0]) ===
"noDiffColumnIsSelected"
? "Select Ground Truth"
: removeCorrectAnswerPrefix(selectedCorrectAnswer[0])
}
isOpen={isDiffDropdownOpen}
handleOpenChange={handleOpenChangeDiff}
shownCols={selectedCorrectAnswer}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,11 @@ const EvaluationScenarios: React.FC<Props> = () => {
</Space>
),
}))}
buttonText={selectedCorrectAnswer[0]}
buttonText={
selectedCorrectAnswer[0] === "noDiffColumnIsSelected"
? "Select Ground Truth"
: selectedCorrectAnswer[0]
}
isOpen={isDiffDropdownOpen}
handleOpenChange={handleOpenChangeDiff}
shownCols={selectedCorrectAnswer}
Expand Down

0 comments on commit fc8ae62

Please sign in to comment.