Skip to content

Commit

Permalink
Fixed fn to send user to self care
Browse files Browse the repository at this point in the history
  • Loading branch information
ruggerocastagnola committed Nov 6, 2023
1 parent e98839d commit 952c41b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/dialogs/DialogDeleteOperator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<DialogDeleteOperatorProps> = ({
selfcareId,
Expand All @@ -22,7 +21,6 @@ export const DialogDeleteOperator: React.FC<DialogDeleteOperatorProps> = ({
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}`

Expand All @@ -31,7 +29,7 @@ export const DialogDeleteOperator: React.FC<DialogDeleteOperatorProps> = ({
}

const handleProceed = () => {
navigate(selfcareUserPageUrl)
window.location.assign(selfcareUserPageUrl)
closeDialog()
}

Expand Down

0 comments on commit 952c41b

Please sign in to comment.