alexa-games / skills-gameon-sdk-js

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.
https://skills-gameon-sdk.github.io
Apache License 2.0
19 stars 11 forks source link

fix: combined leaderboards error with single entry #17

Closed superkew closed 5 years ago

superkew commented 5 years ago

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