diff --git a/src/components/dialogs/DialogDeleteOperator.tsx b/src/components/dialogs/DialogDeleteOperator.tsx index 3214d4896..10f2f6888 100644 --- a/src/components/dialogs/DialogDeleteOperator.tsx +++ b/src/components/dialogs/DialogDeleteOperator.tsx @@ -11,7 +11,6 @@ import { } from '@mui/material' import React from 'react' import { useTranslation } from 'react-i18next' -import { useNavigate } from 'react-router-dom' export const DialogDeleteOperator: React.FC = ({ selfcareId, @@ -22,7 +21,6 @@ export const DialogDeleteOperator: React.FC = ({ const { closeDialog } = useDialog() const { t: tCommon } = useTranslation('common', { keyPrefix: 'actions' }) const { t } = useTranslation('shared-components', { keyPrefix: 'DialogDeleteOperator' }) - const navigate = useNavigate() const selfcareUserPageUrl = `${SELFCARE_BASE_URL}/dashboard/${selfcareId}/users/${userId}` @@ -31,7 +29,7 @@ export const DialogDeleteOperator: React.FC = ({ } const handleProceed = () => { - navigate(selfcareUserPageUrl) + window.location.assign(selfcareUserPageUrl) closeDialog() }