mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-17 21:50:56 +08:00
Sentry fix: Fix undefined reference in IdentityStore
This commit is contained in:
parent
808f516a09
commit
31a9f7e257
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue