Changeset 0f5aa27 for frontend/src/Pages
- Timestamp:
- 02/04/24 16:57:49 (10 months ago)
- Branches:
- master
- Children:
- efaa053
- Parents:
- 07f4e8b
- Location:
- frontend/src/Pages
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/Pages/NoBusinessRegisteredError.js
r07f4e8b r0f5aa27 14 14 const Auth = useAuth(); 15 15 const isLoggedIn = Auth.userIsAuthenticated(); 16 const userId = localStorage.getItem("userId")16 const userId = Auth.getUser().userId 17 17 const [registered, setRegistered] = useState(false); 18 18 let checked = false; … … 26 26 27 27 const { data: firma, isLoading: firmaIsLoading, getData: getFirmi} = useGet("/business/" + userId + "/unapproved", changed) 28 28 const { data, isLoading, getData} = useGet("/" + userId + "/hasBusiness") 29 29 30 30 31 useEffect(() => { … … 52 53 } 53 54 54 ! firmaIsLoading && firma && firma.length > 0 && firma[0].approved&& navigator("/resources/hotel")55 !isLoading && data && navigator("/resources/hotel") 55 56 56 57
Note:
See TracChangeset
for help on using the changeset viewer.