added a socket context for real time communication

This commit is contained in:
victorAnumudu
2024-03-12 16:31:08 +01:00
parent c22cffd167
commit f291382786
6 changed files with 96 additions and 10 deletions
+1 -1
View File
@@ -229,7 +229,7 @@ const AuthRoute = ({ redirectPath = "/login", children }) => {
apiCall
.getHeroJBanners()
.then((res) => {
if (res.data.internal_return < 0) {
if (res.data?.internal_return < 0) {
return;
}
dispatch(commonHeadBanner(res.data));