updated 13-Aug
This commit is contained in:
@@ -51,6 +51,8 @@ const DataTable = ({
|
||||
whiteSpace="normal" // Allow text to wrap
|
||||
wordBreak="normal" // Ensure long words break properly
|
||||
overflowWrap="normal" // Break long words if necessary
|
||||
textTransform={'none'}
|
||||
|
||||
>
|
||||
{isLoading ? <Skeleton height="20px" /> : heading}
|
||||
{/* {heading} */}
|
||||
|
||||
@@ -80,6 +80,8 @@ const KeyMeritsAdd = ({ isOpen, onClose, firstField, id, icons }) => {
|
||||
setIsLoading(true);
|
||||
try {
|
||||
const res = await createKeyMerits({ data: formData, id });
|
||||
console.log(res?.error?.status);
|
||||
|
||||
if (res?.data?.statusCode === 201) {
|
||||
toast({
|
||||
render: () => <ToastBox message={res?.data?.message} />,
|
||||
@@ -91,21 +93,16 @@ const KeyMeritsAdd = ({ isOpen, onClose, firstField, id, icons }) => {
|
||||
|
||||
return;
|
||||
}
|
||||
if (res?.error?.data?.code === 400) {
|
||||
if (res?.error?.status === 400 || res?.error?.status === 500 ) {
|
||||
toast({
|
||||
render: () => (
|
||||
<ToastBox message={res?.error?.data?.message} status={"error"} />
|
||||
),
|
||||
});
|
||||
setIsLoading(false);
|
||||
onClose();
|
||||
setAlert(false);
|
||||
reset();
|
||||
setFile(null);
|
||||
setSelectedImageIcon(null);
|
||||
setSelectedIcon("Select Icon");
|
||||
return;
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
if (error) {
|
||||
toast({
|
||||
|
||||
@@ -290,7 +290,7 @@ console.log(isLoading);
|
||||
IO NAV
|
||||
</Text>
|
||||
<Text as={"span"} fontSize={"sm"} fontWeight={"500"}>
|
||||
{IODetails?.currentValuation ? IODetails?.currentValuation : "00.00"}
|
||||
{IODetails?.ioNAV ? IODetails?.ioNAV : "00.00"}
|
||||
</Text>
|
||||
</Box>
|
||||
|
||||
@@ -308,7 +308,7 @@ console.log(isLoading);
|
||||
IO MV NAV
|
||||
</Text>
|
||||
<Text as={"span"} fontSize={"sm"} fontWeight={"500"}>
|
||||
{IODetails?.marketValue ? IODetails?.marketValue : "00.00"}
|
||||
{IODetails?.ioMVNAV ? IODetails?.ioMVNAV : "00.00"}
|
||||
</Text>
|
||||
</Box>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user