From 31a9f7e25726fa22a0fc7efd3cd7e8ed095516ef Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Sun, 16 Jun 2019 13:43:40 -0500 Subject: [PATCH] Sentry fix: Fix undefined reference in IdentityStore --- app/src/flux/stores/feature-usage-store.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/flux/stores/feature-usage-store.tsx b/app/src/flux/stores/feature-usage-store.tsx index c4c1aa5db..ea73af537 100644 --- a/app/src/flux/stores/feature-usage-store.tsx +++ b/app/src/flux/stores/feature-usage-store.tsx @@ -122,6 +122,7 @@ class FeatureUsageStore extends MailspringStore { markUsed(feature) { const next = JSON.parse(JSON.stringify(IdentityStore.identity())); + if (!next || !next.featureUsage) return; if (next.featureUsage[feature]) { next.featureUsage[feature].usedInPeriod += 1;