diff --git a/src/Components/Medicine/PrescrpitionTimeline.tsx b/src/Components/Medicine/PrescrpitionTimeline.tsx index 31e7f4f47c1..65fab752666 100644 --- a/src/Components/Medicine/PrescrpitionTimeline.tsx +++ b/src/Components/Medicine/PrescrpitionTimeline.tsx @@ -60,7 +60,7 @@ export default function PrescrpitionTimeline({ return ( - { - setIsArchiving(true); - - const { res } = await request(MedicineRoutes.archiveAdministration, { - pathParams: { consultation, external_id: event.administration.id }, - }); - - if (res?.status === 200) { - setIsArchiving(false); - setShowArchiveConfirmation(false); - onArchived(); - } - }} - onClose={() => setShowArchiveConfirmation(false)} - /> )} + { + setIsArchiving(true); + + const { res } = await request(MedicineRoutes.archiveAdministration, { + pathParams: { consultation, external_id: event.administration.id }, + }); + + if (res?.status === 200) { + setIsArchiving(false); + setShowArchiveConfirmation(false); + onArchived(); + } + }} + onClose={() => setShowArchiveConfirmation(false)} + /> ); };