Skip to content

Commit

Permalink
CIV-15815 remove logic to show the pay the additional fee button (#1616)
Browse files Browse the repository at this point in the history
* remove logic to show the pay the additional fee button

* simplified if

---------

Co-authored-by: sankhajuria <sankhajuria@gmail.com>
  • Loading branch information
LeonardoPalmeiro and sankhajuria authored Dec 19, 2024
1 parent bd24ce2 commit 9966a9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,8 @@ public boolean isApplicationUncloakedWithAdditionalFee(CaseData caseData) {
}

public boolean containsTypesNeedNoAdditionalFee(CaseData caseData) {
if (caseData.getGeneralAppType().getTypes().size() == 1
return caseData.getGeneralAppType().getTypes().size() == 1
&& caseData.getGeneralAppType().getTypes()
.contains(GeneralApplicationTypes.SET_ASIDE_JUDGEMENT)) {
return true;
}
return caseData.getGeneralAppType().getTypes()
.contains(GeneralApplicationTypes.VARY_ORDER);
.contains(GeneralApplicationTypes.SET_ASIDE_JUDGEMENT);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ void shouldReturnTrue_WhenApplicationIsUncloakedTypeRequestMoreInformation_has_v
.types(List.of(VARY_ORDER, EXTEND_TIME))
.build())
.build();
assertThat(helper.containsTypesNeedNoAdditionalFee(caseData)).isTrue();
assertThat(helper.containsTypesNeedNoAdditionalFee(caseData)).isFalse();
}
}

Expand Down

0 comments on commit 9966a9d

Please sign in to comment.