From ba4aa586b3cc0ecb18f9fefeb79dbf08cc8ad1fd Mon Sep 17 00:00:00 2001 From: Tb Fajri Date: Tue, 9 Jan 2024 11:16:45 +0700 Subject: [PATCH] update --- .../FinalLog/Components/DialogConfirmation.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/dashboard/src/pages/CustomerService/FinalLog/Components/DialogConfirmation.tsx b/frontend/dashboard/src/pages/CustomerService/FinalLog/Components/DialogConfirmation.tsx index a2204481..a6d6b5de 100644 --- a/frontend/dashboard/src/pages/CustomerService/FinalLog/Components/DialogConfirmation.tsx +++ b/frontend/dashboard/src/pages/CustomerService/FinalLog/Components/DialogConfirmation.tsx @@ -58,7 +58,11 @@ export default function DialogConfirmation({requestLog, setOpenDialog, openDialo .then((response) => { enqueueSnackbar('Verification Request LOG Success', { variant: 'success' }); setOpenDialog(false); - navigate('/case_management/inpatient_monitoring') + if (requestLog?.service_type == 'Inpatient'){ + navigate('/case_management/inpatient_monitoring'); + } else { + navigate('/custormer-service/final-log'); + } }) .catch(({ response }) => { enqueueSnackbar(response.data.message ?? 'Something went wrong!', { variant: 'error' });