Sentry fix: Fix undefined reference in IdentityStore

This commit is contained in:
Ben Gotow 2019-06-16 13:43:40 -05:00
parent 808f516a09
commit 31a9f7e257

View file

@ -122,6 +122,7 @@ class FeatureUsageStore extends MailspringStore {
markUsed(feature) { markUsed(feature) {
const next = JSON.parse(JSON.stringify(IdentityStore.identity())); const next = JSON.parse(JSON.stringify(IdentityStore.identity()));
if (!next || !next.featureUsage) return;
if (next.featureUsage[feature]) { if (next.featureUsage[feature]) {
next.featureUsage[feature].usedInPeriod += 1; next.featureUsage[feature].usedInPeriod += 1;