serge-web/serge-web

View on GitHub
client/src/Views/Version.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function Version has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const Version: React.FC<VersionProps> = () => {
  const dispatch = useDispatch()
  const { notifications, playerLog, wargame }: VersionProps = useSelector(({ notifications, playerLog, wargame }: VersionProps) => ({ notifications, playerLog, wargame }))
  const [toggleBeat, setToggleBeat] = useState(false)
  const [serverStatus, setServerStatus] = useState('')
Severity: Major
Found in client/src/Views/Version.tsx - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status