The Skills GameOn SDK (Beta) is a Node.js package that makes creating leaderboards and competitions, powered by Amazon GameOn, easier for Alexa Skill developers.
If the leaderboard has a single entry, the combined leaderboards overlap logic was failing. It was not checking for an empty array on the lower ranked leaderboard.
Description
Added a block to the large if statement.
Issue link(s) - Optional
Motivation and Context
Sample skill fails on first attempt. This is no good.
Testing
Added new failing test. Fixed code. Test passes.
Screenshots (if appropriate)
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
[x] My code follows the code style of this project
[ ] My change requires a change to the documentation
[ ] I have updated the documentation accordingly
[ ] I have read the README document
[x] I have added tests to cover my changes
[x] All new and existing tests passed
License
[x] I confirm that this pull request can be released under the Apache 2 license
Title
If the leaderboard has a single entry, the combined leaderboards overlap logic was failing. It was not checking for an empty array on the lower ranked leaderboard.
Description
Added a block to the large if statement.
Issue link(s) - Optional
Motivation and Context
Sample skill fails on first attempt. This is no good.
Testing
Added new failing test. Fixed code. Test passes.
Screenshots (if appropriate)
Types of changes
Checklist
License