Skip to content

Commit 19c652b

Browse files
committed
fix: crash on boot
1 parent f621038 commit 19c652b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils/Metrics.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ define(function (require, exports, module) {
187187
}
188188
count = count || 1;
189189
value = value || 1;
190+
if(!mixpanel.track) {
191+
return;
192+
}
190193
mixpanel.track(category, {
191194
action, label, count, value
192195
});

0 commit comments

Comments
 (0)