Skip to content
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

Merged
merged 3 commits into from
Dec 14, 2023
Merged

Points: points query fixes #5260

merged 3 commits into from
Dec 14, 2023

Conversation

benisgold
Copy link
Member

Fixes APP-1008, APP-1009

What changed (plus any additional context for devs)

Screen recordings / screenshots

What to test

Copy link

linear bot commented Dec 13, 2023

Copy link
Contributor

@walmat walmat left a 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);
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fancy

@skylarbarrera
Copy link
Contributor

agree with Matt should do a lil testing on this one

Copy link
Contributor

@walmat walmat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup it works, nice work. timeout is matching up to next drop date too.
Screenshot 2023-12-14 at 10 27 46 AM

@jinchung jinchung merged commit c432f3b into develop Dec 14, 2023
5 of 6 checks passed
@jinchung jinchung deleted the @benisgold/points-next-drop branch December 14, 2023 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants