Remove email check on web

This commit is contained in:
Ansh
2023-10-25 12:51:08 -07:00
committed by GitHub
parent e055a44b32
commit 2a18534b12
+2 -2
View File
@@ -45,8 +45,8 @@ export function useAnalytics() {
export function init(store: RootStoreModel) { export function init(store: RootStoreModel) {
store.onSessionLoaded(() => { store.onSessionLoaded(() => {
const sess = store.session.currentSession const sess = store.session.currentSession
if (sess && sess.did) { if (sess) {
if (sess.email) { if (sess.did) {
const did_hashed = sha256(sess.did) const did_hashed = sha256(sess.did)
segmentClient.identify(did_hashed, {did_hashed}) segmentClient.identify(did_hashed, {did_hashed})
store.log.debug('Ping w/hash') store.log.debug('Ping w/hash')