do client check for tutorial instead of server side
This commit is contained in:
@@ -107,6 +107,7 @@ function registerEvents(store) {
|
||||
}
|
||||
|
||||
function setAuthenticated(account) {
|
||||
|
||||
if (account && window.Notification) {
|
||||
window.Notification.requestPermission();
|
||||
}
|
||||
@@ -115,6 +116,9 @@ function registerEvents(store) {
|
||||
LogRocket.identify(account.id, account);
|
||||
}
|
||||
|
||||
const { tutorial, ws } = store.getState();
|
||||
if (tutorial) ws.sendInstancePractice();
|
||||
|
||||
store.dispatch(actions.setAccount(account));
|
||||
store.dispatch(actions.setAuthenticated(true));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user