reloads market job list when the api call fails

This commit was merged in pull request #834.
This commit is contained in:
victorAnumudu
2024-10-31 02:47:49 +01:00
parent 70c205ffca
commit 6ef31e5dbe
2 changed files with 14 additions and 1 deletions
+2
View File
@@ -231,6 +231,8 @@ const AuthRoute = ({ redirectPath = "/login", children }) => {
getMyWalletList();
}, [walletTable, isLogin.status]);
// FUNCTION TO GET MARKET JOB LIST
useEffect(() => {
if((!loggedIn && !isLogin.status) || account_type == 'FAMILY'){ // DO NOT CALL THIS, IF USER ACCOUNT TYPE IS FAMILY
return