consumed family wallet API

This commit was merged in pull request #645.
This commit is contained in:
victorAnumudu
2024-03-17 23:47:35 +01:00
parent dfdbf404a5
commit c1600a2a13
5 changed files with 101 additions and 68 deletions
+8 -2
View File
@@ -193,6 +193,9 @@ const AuthRoute = ({ redirectPath = "/login", children }) => {
}, [jobListTable, isLogin.status]);
useEffect(() => {
if((!loggedIn && !isLogin.status) || account_type == 'FAMILY'){ // DO NOT CALL THIS, IF USER ACCOUNT TYPE IS FAMILY
return
}
const getMyWalletList = async () => {
dispatch(updateWalletDetails({ loading: true, data: [] }));
try {
@@ -207,7 +210,7 @@ const AuthRoute = ({ redirectPath = "/login", children }) => {
}
};
getMyWalletList();
}, [walletTable]);
}, [walletTable, isLogin.status]);
useEffect(() => {
if((!loggedIn && !isLogin.status) || account_type == 'FAMILY'){ // DO NOT CALL THIS, IF USER ACCOUNT TYPE IS FAMILY
@@ -245,6 +248,9 @@ const AuthRoute = ({ redirectPath = "/login", children }) => {
//FUNCTION TO GET COMMON HEAD DATA
useEffect(() => {
if((!loggedIn && !isLogin.status) || account_type == 'FAMILY'){ // DO NOT CALL THIS, IF USER ACCOUNT TYPE IS FAMILY
return
}
apiCall
.getRecentActivitiedData()
.then((res) => {
@@ -257,7 +263,7 @@ const AuthRoute = ({ redirectPath = "/login", children }) => {
.catch((error) => {
console.log("ERROR ", error);
});
}, []);
}, [isLogin.status]);
//FUNCTION TO GET FAMILY BANNERS