shuffle validators

This commit is contained in:
Peng Zhong 2018-07-19 22:59:43 +08:00
parent 7cf6f5db61
commit db78f2fce5
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import { orderBy } from "lodash"
import { shuffle, orderBy } from "lodash"
export default function(validators) {
// let validatorsWithAvatars = []
// let validatorsWithoutAvatars = []
@ -19,5 +19,5 @@ export default function(validators) {
orderedValidators = validatorsWithAvatars.concat(validatorsWithoutAvatars)
*/
}
return orderedValidators
return shuffle(orderedValidators)
}