Skip to content

Commit

Permalink
#3019 - Show stereo label correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
nanoblit committed Aug 11, 2023
1 parent 48d89cd commit efbfc72
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -579,10 +579,14 @@ function shouldDisplayStereoLabel(
}
const stereoLabelType = stereoLabel.match(/\D+/g)[0];

if (ignoreChiralFlag && stereoLabelType === StereoLabel.Abs) {
const stereoLabelTypeWithChiralFlag = ignoreChiralFlag
? StereoLabel.Abs
: stereoLabelType;

if (stereoLabelTypeWithChiralFlag === StereoLabel.Abs) {
return false;
}
if (ignoreChiralFlag && stereoLabelType !== StereoLabel.Abs) {
if (stereoLabelTypeWithChiralFlag === StereoLabel.And) {
return true;
}

Expand Down

0 comments on commit efbfc72

Please sign in to comment.