kanyuga/killer-counter

View on GitHub
src/components/PlayerList.js

Summary

Maintainability
A
1 hr
Test Coverage

Function PlayerList has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

let PlayerList = (props) => {
  let players = props.players.slice();
  const isLeaderboard = props.hasOwnProperty('sorted');
  if (isLeaderboard) {
    players = players.sort((player1, player2) => player2.score - player1.score);
Severity: Minor
Found in src/components/PlayerList.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status