From 029af91e9e8ca6605ea646fa42af3f6923d176bb Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Thu, 21 Dec 2023 13:25:10 +0100 Subject: [PATCH] fix: is after undefined parsing (#5718) --- .../features/feature-toggle/feature-toggle-strategies-store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/features/feature-toggle/feature-toggle-strategies-store.ts b/src/lib/features/feature-toggle/feature-toggle-strategies-store.ts index 4fca52ad3e..54f2c65c2d 100644 --- a/src/lib/features/feature-toggle/feature-toggle-strategies-store.ts +++ b/src/lib/features/feature-toggle/feature-toggle-strategies-store.ts @@ -398,7 +398,7 @@ class FeatureStrategiesStore implements IFeatureStrategiesStore { acc.lastSeenAt == null || isAfter( new Date(r.env_last_seen_at), - new Date(acc[r.feature_name]), + new Date(acc.lastSeenAt), ) ) { acc.lastSeenAt = r.env_last_seen_at;