diff --git a/sormas-ui/src/main/java/de/symeda/sormas/ui/samples/components/FourFoldCtCqComponent.java b/sormas-ui/src/main/java/de/symeda/sormas/ui/samples/components/FourFoldCtCqComponent.java index eaeb6a8bb7a..2735b2516a2 100644 --- a/sormas-ui/src/main/java/de/symeda/sormas/ui/samples/components/FourFoldCtCqComponent.java +++ b/sormas-ui/src/main/java/de/symeda/sormas/ui/samples/components/FourFoldCtCqComponent.java @@ -115,21 +115,17 @@ private void wireEvents() { } private void updateFourFoldIncrease(PathogenTestType testType) { - if (currentDisease == Disease.DENGUE && testType == PathogenTestType.IGG_SERUM_ANTIBODY) { - fourFoldIncrease.setCaption(I18nProperties.getCaption(Captions.PathogenTest_fourFoldIncreaseAntibodyTiter_DENGUE)); + if (testType == PathogenTestType.IGM_SERUM_ANTIBODY || testType == PathogenTestType.IGG_SERUM_ANTIBODY) { fourFoldIncrease.setVisible(true); fourFoldIncrease.setEnabled(true); - } else if (testType == PathogenTestType.IGM_SERUM_ANTIBODY || testType == PathogenTestType.IGG_SERUM_ANTIBODY) { - fourFoldIncrease.setCaption( - I18nProperties.getPrefixCaption(PathogenTestDto.I18N_PREFIX, PathogenTestDto.FOUR_FOLD_INCREASE_ANTIBODY_TITER)); - fourFoldIncrease.setVisible(true); - fourFoldIncrease.setEnabled(caseSampleCount >= 2); } else { - fourFoldIncrease.setCaption( - I18nProperties.getPrefixCaption(PathogenTestDto.I18N_PREFIX, PathogenTestDto.FOUR_FOLD_INCREASE_ANTIBODY_TITER)); fourFoldIncrease.setVisible(false); fourFoldIncrease.setEnabled(false); } + fourFoldIncrease.setCaption( + currentDisease == Disease.DENGUE + ? I18nProperties.getCaption(Captions.PathogenTest_fourFoldIncreaseAntibodyTiter_DENGUE) + : I18nProperties.getPrefixCaption(PathogenTestDto.I18N_PREFIX, PathogenTestDto.FOUR_FOLD_INCREASE_ANTIBODY_TITER)); } private void syncSelfVisibility() {