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

fix: Return correct value on next level check #22

Merged

Conversation

cjmellor
Copy link
Owner

@cjmellor cjmellor commented Aug 1, 2023

This PR fixes an issue where when a User has hit the level cap and you try to view the amount of points until the next level, it won't throw an error.

Also added some more assertions.

Fixes #20

@cjmellor cjmellor linked an issue Aug 1, 2023 that may be closed by this pull request
@cjmellor cjmellor self-assigned this Aug 1, 2023
@cjmellor cjmellor added the bug Something isn't working label Aug 1, 2023
@cjmellor cjmellor merged commit c00bcc1 into main Aug 1, 2023
5 checks passed
@cjmellor cjmellor deleted the 20-bug-attempt-to-read-property-next_level_experience-on-null branch August 1, 2023 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix: Attempt to read property "next_level_experience" on null
1 participant