flsy/react-mapycz

View on GitHub
home/RouteInfo.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function RouteInfo has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const RouteInfo = () => {
  const [routeInfo, setRouteInfo] = useState<null | RouteInfoResultProps>(null);

  const fetchRouteInfo = useCallback(async () => {
    const info = await getRouteInfo(coords, params as any);
Severity: Minor
Found in home/RouteInfo.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status