-
Notifications
You must be signed in to change notification settings - Fork 635
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
Points: points query fixes #5260
Conversation
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.
Code looks good, need to test this out still
if (!nextDistribution) return; | ||
const nextDistributionIn = nextDistribution * 1000 - Date.now(); | ||
|
||
nextDropTimeout ??= setTimeout(() => query.refetch(), nextDistributionIn); |
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.
i had no idea you could use nullish coalescing this way. +1
if (!nextDistribution) return; | ||
const nextDistributionIn = nextDistribution * 1000 - Date.now(); | ||
|
||
nextDropTimeout ??= setTimeout(() => query.refetch(), nextDistributionIn); |
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.
fancy
agree with Matt should do a lil testing on this one |
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.
Fixes APP-1008, APP-1009
What changed (plus any additional context for devs)
Screen recordings / screenshots
What to test