diff --git a/src/Components/Corresponsales/Partidas/Partidas.tsx b/src/Components/Corresponsales/Partidas/Partidas.tsx index 163b293..1853f69 100644 --- a/src/Components/Corresponsales/Partidas/Partidas.tsx +++ b/src/Components/Corresponsales/Partidas/Partidas.tsx @@ -22,6 +22,10 @@ export const Partidas: FC = (props) => { const stickyValue = window.localStorage.getItem('Departamento') return stickyValue !== null ? JSON.parse(stickyValue) : '' }) + const [Perfil, setPerfil] = useState(() => { + const stickyValue = window.localStorage.getItem('Perfil') + return stickyValue !== null ? JSON.parse(stickyValue) : '' + }) const [ShowModal, setShowModal] = useState(false) const [MsgDialogDelete, setMsgDialogDelete] = useState(false) const [IDPartida, setIDPartida] = useState(0) @@ -178,7 +182,7 @@ export const Partidas: FC = (props) => { - { parseInt(proc!.replace('proc=', '')) === 1 && parseInt(modo!.replace('modo=', '')) === 1? <> + { (Depto === 'Corresponsalias' || Depto === 'Sistemas') ? <>