diff --git a/src/components/Modals/ConfirmDeleteModal.jsx b/src/components/Modals/ConfirmDeleteModal.jsx index adcc2b4a8..1b2f095a6 100644 --- a/src/components/Modals/ConfirmDeleteModal.jsx +++ b/src/components/Modals/ConfirmDeleteModal.jsx @@ -31,10 +31,10 @@ const ConfirmDeleteModal = () => { } }, [contact, resultContactsQueryById]) - const onClose = () => navigate(`/${contactId}`) + const onClose = () => navigate(`/${contactId}`, { replace: true }) const onDeleteContact = async (contactParam = null) => { - navigate('/') + navigate('/', { replace: true }) await deleteContact(client, contactParam ? contactParam : contact) onDeleteContact && onDeleteContact(contactParam ? contactParam : contact) }