Skip to content

Commit

Permalink
pop oral_issue if nutrition event changed to non-oral
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Sep 20, 2024
1 parent 1d9416e commit 18665f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Components/Patient/DailyRounds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,10 @@ export const DailyRounds = (props: any) => {
form["investigations_dirty"] = true;
}

if (event.name === "nutrition_route" && event.value !== "ORAL") {
form["oral_issue"] = undefined;
}

dispatch({ type: "set_form", form });
};

Expand Down

0 comments on commit 18665f1

Please sign in to comment.