diff --git a/src/Pages/IO_Management/CreateIO/IOCashDetails/IOCashDetails.jsx b/src/Pages/IO_Management/CreateIO/IOCashDetails/IOCashDetails.jsx index 255c726..505ba1d 100644 --- a/src/Pages/IO_Management/CreateIO/IOCashDetails/IOCashDetails.jsx +++ b/src/Pages/IO_Management/CreateIO/IOCashDetails/IOCashDetails.jsx @@ -20,7 +20,7 @@ import AddCaseDetails from "./AddCaseDetails"; import { useUpdateIOCaseMutation } from "../../../../Services/io.service"; import ToastBox from "../../../../Components/ToastBox"; import { useParams } from "react-router-dom"; -import { encryptString } from "../../../../Constants/Constants"; +import { encryptString, isMaker } from "../../../../Constants/Constants"; const IOCashDetails = () => { const params = useParams(); @@ -88,7 +88,8 @@ const IOCashDetails = () => { Pending {IODetails?.ioCashStatusHistory?.Pending.length > 0 && ( - {IODetails?.ioCashStatusHistory?.Pending.length !== 0 && IODetails?.ioCashStatusHistory?.Pending.length} + {IODetails?.ioCashStatusHistory?.Pending.length !== 0 && + IODetails?.ioCashStatusHistory?.Pending.length} )} {/* @@ -106,7 +107,7 @@ const IOCashDetails = () => { {IODetails?.isInvestedAmount - ? localStorage?.getItem("role") === encryptString(import.meta.env.VITE_VITE_MAKER) && ( + ? isMaker() && ( ), @@ -263,20 +273,12 @@ const Pending = () => { id={actionId} /> - - + +