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

Feat: Statistics rewards #1129

Merged
merged 17 commits into from Mar 12, 2024
Merged

Conversation

devpanther
Copy link
Contributor

@devpanther devpanther commented Mar 12, 2024


// Increment rewards statistics, if it is assigned but not completed
if (isAssigned && !isCompleted) {
rewards.assigned += price;
Copy link
Member

Choose a reason for hiding this comment

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

Does this have proper error handling for NaN etc?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added an error handling now, although i had a check for price not set earlier but NaN check would make it better

helpers/github.ts Outdated Show resolved Hide resolved
Copy link
Member

@0x4007 0x4007 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. Would like to see a successful test run, and its results.

@devpanther
Copy link
Contributor Author

@0x4007 0x4007 merged commit d81380c into ubiquity:development Mar 12, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Statistics
2 participants