Skip to content

Commit

Permalink
moved to usequery
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaJ2305 committed Dec 26, 2024
1 parent 7b66c56 commit 11d012f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Facility/DischargeModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ const DischargeModal = ({
enabled: consultationData.id !== undefined,
});

if (isLoading) return <Loading />;

if (error) {
Notification.Error({ msg: t("ERROR_FETCHING_CONSULTATION") });
}
Expand Down Expand Up @@ -191,6 +189,8 @@ const DischargeModal = ({
: "discharge_date"
];

if (isLoading) return <Loading />;

return (
<>
<ConfirmDialog
Expand Down

0 comments on commit 11d012f

Please sign in to comment.