fix: only exclude xp gained analytics events if blocked constructs has entry (#5035)

This commit is contained in:
ggurdin 2026-01-02 15:02:45 -05:00 committed by GitHub
parent 2a1daca3ce
commit bd58baee04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -367,7 +367,7 @@ class AnalyticsDataService {
final newConstructs = await getConstructUses(updateIds);
int points = 0;
if (updateIds.isNotEmpty) {
if (blocked.isEmpty || updateIds.isNotEmpty) {
for (final id in updateIds) {
final prevPoints = prevConstructs[id]?.points ?? 0;
final newPoints = newConstructs[id]?.points ?? 0;