Skip to content

Commit

Permalink
πŸ› Fix crisp session event syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Sep 13, 2024
1 parent c09ba50 commit 3738b22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util/EventLogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ export async function setLoggerUser(
}
}
if (vue.$crisp) {
vue.$crisp.push(['set', 'session:data', ['wallet', wallet]]);
vue.$crisp.push(['set', 'session:data', ['loginMethod', method]]);
vue.$crisp.push(['set', 'session:data', [[['wallet', wallet]]]]);
vue.$crisp.push(['set', 'session:data', [[['login_method', method]]]]);
}
} catch (err) {
console.error(err); // eslint-disable-line no-console
Expand All @@ -76,7 +76,7 @@ export function updateLoggerUserInfo(vue, { wallet, displayName, email }) {
vue.$sentry.setUser(opt);
}
if (vue.$crisp) {
vue.$crisp.push(['set', 'session:data', ['wallet', wallet]]);
vue.$crisp.push(['set', 'session:data', [[['wallet', wallet]]]]);
if (displayName) {
vue.$crisp.push(['set', 'user:nickname', [displayName || wallet]]);
}
Expand Down

0 comments on commit 3738b22

Please sign in to comment.