diff --git a/app/src/lib/stats/stats-store.ts b/app/src/lib/stats/stats-store.ts index 60e1b6a34a..c9fc02d253 100644 --- a/app/src/lib/stats/stats-store.ts +++ b/app/src/lib/stats/stats-store.ts @@ -1500,8 +1500,8 @@ export class StatsStore implements IStatsStore { public recordOpenSubmoduleFromDiffCount = () => this.increment('openSubmoduleFromDiffCount') - private async increment(k: keyof NumericMeasures, n = 1) { - this.updateDailyMeasures( + private increment(k: keyof NumericMeasures, n = 1) { + return this.updateDailyMeasures( m => ({ [k]: m[k] + n } as Pick) ) }