Skip to content

Commit

Permalink
fixed issue
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikNoga committed Jun 18, 2024
1 parent c4daecf commit c31daf8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1047,9 +1047,10 @@
return false;
});

vm.displayWardSelect = vm.homeFacilityWards.length > 0;
vm.displayWardSelect = vm.homeFacilityWards.length > 0 &&
adjustmentType.state === ADJUSTMENT_TYPE.RECEIVE.state;

if (vm.displayWardSelect) {
if (vm.homeFacilityWards.length > 0) {
var wardNames = vm.homeFacilityWards.map(function(ward) {
return ward.name;
});
Expand Down

0 comments on commit c31daf8

Please sign in to comment.