final fixes
This commit is contained in:
@@ -98,7 +98,7 @@ const DistributionInvestor = ({ isOpen, onClose }) => {
|
||||
formState: { errors },
|
||||
reset,
|
||||
} = useForm({
|
||||
resolver: yupResolver(investor),
|
||||
resolver: yupResolver(investorExit),
|
||||
});
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ const DistributionInvestor = ({ isOpen, onClose }) => {
|
||||
"Last Name",
|
||||
"Amount",
|
||||
"Holding %",
|
||||
"($)",
|
||||
"Distriution Amt($)",
|
||||
];
|
||||
|
||||
const extractedArray = calcualtedData?.data?.map((item, index) => ({
|
||||
@@ -172,7 +172,7 @@ const DistributionInvestor = ({ isOpen, onClose }) => {
|
||||
</Text>
|
||||
</Box>
|
||||
),
|
||||
"($)": (
|
||||
"Distriution Amt($)": (
|
||||
<Box minW={24} isTruncated={true}>
|
||||
<Text as={"span"} color={"teal.900"} fontWeight={"500"}>
|
||||
{item?.distribution_amt?.toLocaleString(undefined, {
|
||||
@@ -324,9 +324,7 @@ const DistributionInvestor = ({ isOpen, onClose }) => {
|
||||
};
|
||||
|
||||
try {
|
||||
const res = (await exit)
|
||||
? updateExitToInvestor({ id, data: finalData })
|
||||
: getFinalDistributionInvestment({ id, data: finalData });
|
||||
const res = await getFinalDistributionInvestment({ id, data: finalData });
|
||||
console.log(finalData);
|
||||
|
||||
if (res?.error?.status === 401) {
|
||||
|
||||
@@ -148,7 +148,7 @@ const Exit = ({ isOpen, onClose }) => {
|
||||
"Last Name",
|
||||
"Amount",
|
||||
"Holding %",
|
||||
"($)",
|
||||
"Exit Amt($)",
|
||||
];
|
||||
|
||||
const extractedArray = calcualtedData?.data?.map((item, index) => ({
|
||||
@@ -209,7 +209,7 @@ const Exit = ({ isOpen, onClose }) => {
|
||||
</Text>
|
||||
</Box>
|
||||
),
|
||||
"($)": (
|
||||
"Exit Amt($)": (
|
||||
<Box minW={24} isTruncated={true}>
|
||||
<Text as={"span"} color={"teal.900"} fontWeight={"500"}>
|
||||
{item?.distribution_amt?.toLocaleString(undefined, {
|
||||
@@ -370,9 +370,7 @@ const Exit = ({ isOpen, onClose }) => {
|
||||
};
|
||||
|
||||
try {
|
||||
const res = (await exit)
|
||||
? updateExitToInvestor({ id, data: finalData })
|
||||
: getFinalDistributionInvestment({ id, data: finalData });
|
||||
const res = await updateExitToInvestor({ id, data: finalData })
|
||||
console.log(finalData);
|
||||
|
||||
if (res?.error?.status === 401) {
|
||||
|
||||
Reference in New Issue
Block a user