Skip to content

Commit

Permalink
fix editing dependents issue in 18111
Browse files Browse the repository at this point in the history
  • Loading branch information
traskowskycaci committed Feb 6, 2024
1 parent aaa4a4d commit cfba7c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/MyMove/EditOrders.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ export const EditOrders = ({
};

const submitOrders = (fieldValues) => {
const hasDependents = fieldValues.has_dependents === 'yes';
let hasDependents = false;
if (fieldValues.has_dependents === 'yes') {
hasDependents = true;
}
const entitlementCouldChange =
hasDependents !== currentOrders.has_dependents || fieldValues.grade !== currentOrders.grade;
const newDutyLocationId = fieldValues.new_duty_location.id;
Expand Down

0 comments on commit cfba7c8

Please sign in to comment.