Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxpiper committed Jun 20, 2022
1 parent 139fd6c commit 5b85d8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion legacy/app/auth/authentication.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function (
detail: {
event: 'user logged in',
event_type: 'user_interaction',
user_role: userData.role == 'admin' ? 'admin' : 'member'
user_role: userData.role === 'admin' ? 'admin' : 'member'
}
}));
}
Expand Down
8 changes: 4 additions & 4 deletions legacy/app/gtm-userprops.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function ($q, ConfigEndpoint, UserEndpoint) {
if (x.id && x.role) {
// According to data dictionary:
// https://docs.google.com/document/d/1ulZerckIGun-mv4ASu2nEFGFTpqcYwBXd3HR95eKj68
x.role_level = x.role == 'admin' ? 'admin' : 'member';
x.role_level = x.role === 'admin' ? 'admin' : 'member';
}
user.resolve(x);
}).catch(function () {
Expand All @@ -38,7 +38,7 @@ function ($q, ConfigEndpoint, UserEndpoint) {
// in the analytics data warehouse
var scopedUserId = undefined;
if (user.id) {
scopedUserId = String(user.id) + "," + String(multisite.site_id || null);
scopedUserId = String(user.id) + ',' + String(multisite.site_id || null);
}

userProps.resolve({
Expand All @@ -65,10 +65,10 @@ function ($q, ConfigEndpoint, UserEndpoint) {

// Initialize user properties along with this module
triggerRefresh();

// Add event listener to refresh user properties on demand
window.addEventListener('ush:analytics:refreshUserProperties', function () {
triggerRefresh();
});

}];

0 comments on commit 5b85d8e

Please sign in to comment.