-
-
Notifications
You must be signed in to change notification settings - Fork 720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: last seen cherrypick #5717
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
@@ -399,8 +399,11 @@ class FeatureStrategiesStore implements IFeatureStrategiesStore { | |||
} | |||
|
|||
if ( | |||
acc.lastSeenAt === undefined || | |||
new Date(r.env_last_seen_at) > new Date(acc.lastSeenAt) | |||
acc.lastSeenAt == null || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is required as new Date(undefined) doesn't work correctly as new Date(null)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But would acc.lastSeenAt now be undefined
and not null
because of the removal on this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, but the line I removed was always breaking the current acc state
About the changes
Cherry picking last seen at fixes
Important files
Discussion points