Merge branch 'feature/hjarntorget' of https://github.com/kolplattformen/skolplattformen into feature/hjarntorget

This commit is contained in:
Viktor Sarström 2021-11-29 10:45:07 +01:00
commit d2050ca584
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ export const ApiProvider: TApiProvider = ({
}
useEffect(() => {
const handler = () => {
const handler = async () => {
setIsLoggedIn(api.isLoggedIn)
setIsFake(api.isFake)
@ -55,7 +55,7 @@ export const ApiProvider: TApiProvider = ({
api.off('logout', handler)
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [api.isLoggedIn, api.isFake])
}, [api])
return (
<ApiContext.Provider value={value}>