Skip to content

Commit

Permalink
cleanup fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sercasti committed Nov 14, 2024
1 parent 59d11de commit 3bc41f5
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
{% if user %}
if (window.location.pathname.endsWith("dashboard/")) {
var userId = "{{ h.opendata_theme_platform_uuid() }}";
console.log(userId);
if (!userId || userId.length <= 30) {
console.log("entro");
if (!userId || userId === 'None' || userId.length <= 30) {
userId = '{{user.id}}';
}
analytics.identify(userId, {name: '{{user.fullname}}', email: '{{user.email}}'});
Expand Down

0 comments on commit 3bc41f5

Please sign in to comment.