Skip to content

Commit

Permalink
lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eshark9312 committed Jul 24, 2023
1 parent b949609 commit 3e93e02
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions packages/ui/src/app/pages/Validators/ValidatorList.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,13 @@ export default {
],
},
erasTotalStake: joy(130_000),
slashingSpans:{
size: Math.floor(Math.random() * 2)
slashingSpans: {
size: Math.floor(Math.random() * 2),
},
validators: {
commission: joy(0.0000011),
blocked: false,
},
validators:
{
commission: joy(0.0000011),
blocked: false,
},
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/validators/hooks/useValidatorsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const useValidatorsList = () => {
const getValidatorsInfo = (api: ProxyApi) => {
return api.query.session.validators().pipe(
switchMap((entries) => {
const validatorAddresses = entries.map(address=>address.toString())
const validatorAddresses = entries.map((address) => address.toString())
const validatorInfoObservables = validatorAddresses.map((address) => getValidatorInfo(address, api))
return combineLatest(validatorInfoObservables)
})
Expand Down

0 comments on commit 3e93e02

Please sign in to comment.