diff --git a/src/Pages/Dashboard/InvestmentOpportunities.jsx b/src/Pages/Dashboard/InvestmentOpportunities.jsx index 1d8ed47..d11a454 100644 --- a/src/Pages/Dashboard/InvestmentOpportunities.jsx +++ b/src/Pages/Dashboard/InvestmentOpportunities.jsx @@ -62,7 +62,13 @@ const InvestmentOpportunities = ({ showSearch = true, selectStyle = {} }) => { "Amount Remaining %": ( - {`${parseFloat(item?.Amount_remaining_per || 0).toLocaleString()} %`} + {`${parseFloat(item?.Amount_remaining_per || 0).toLocaleString( + undefined, + { + minimumFractionDigits: 2, + maximumFractionDigits: 2, + } + )} %`} ), @@ -79,12 +85,11 @@ const InvestmentOpportunities = ({ showSearch = true, selectStyle = {} }) => { "No of Views": ( - {item?.Views_today} - {filter === "today" - ? item?.Views_today + {filter === "last30days" + ? item?.Views_mtd : filter === "last7days" ? item?.Views_last_7_days - : item?.Views_mtd} + : item?.Views_today} ), @@ -136,8 +141,8 @@ const InvestmentOpportunities = ({ showSearch = true, selectStyle = {} }) => { - - + + diff --git a/src/Pages/Login.jsx b/src/Pages/Login.jsx index 62837f1..d53844c 100644 --- a/src/Pages/Login.jsx +++ b/src/Pages/Login.jsx @@ -78,7 +78,7 @@ const Login = () => { setIsLoading(false); setIsAuthenticate(true); Cookies.set("isAuthenticated", true, { expires: 7 }); - navigate("/sponser"); + navigate("/"); reset(); }