mirror of
https://github.com/UniversityOfHelsinkiCS/ohtuilmo.git
synced 2026-10-12 19:03:41 +03:00
added cautionary comment about logins to App
This commit is contained in:
@@ -125,6 +125,8 @@ const App = (props) => {
|
||||
const loginInterval = setInterval(async () => {
|
||||
if (!isCustomerReviewPage) {
|
||||
try {
|
||||
// This has to be the service login and not await loginUser(), because
|
||||
// loginUser updates redux state which forces a reload => breaks things!
|
||||
await loginService.login()
|
||||
} catch (err) {
|
||||
console.error(err)
|
||||
|
||||
Reference in New Issue
Block a user