Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Fix misuse of sort method while updating delegates list cache #2654

Merged
merged 1 commit into from
Dec 11, 2018

Conversation

lsilvs
Copy link
Contributor

@lsilvs lsilvs commented Dec 11, 2018

What was the problem?

sort() method causing the updateDelegateListCache function to not behaviour as expected due to the fact it orders as strings.

How did I fix it?

I've added a compare function to make sure it orders as numbers.

How to test it?

npm run mocha -- test/unit/modules/delegates.js

Review checklist

@MaciejBaj MaciejBaj merged commit 64dab68 into 1.4.0 Dec 11, 2018
@MaciejBaj MaciejBaj deleted the 2652-misuse-sort-updateDelegateListCache branch December 11, 2018 13:45
@MaciejBaj MaciejBaj changed the title Fix misuse of sort() method Fix misuse of sort method while updating delegates list cache Dec 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants