HabitatMap/AirCasting

View on GitHub
app/javascript/react/utils/useShortenedLink.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function useShortenedLink has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const useShortenedLink = (url: string, accessToken: string) => {
  const [shortenedLink, setShortenedLink] = useState<string>(url);
  const [error, setError] = useState<Error | null>(null);

  useEffect(() => {
Severity: Minor
Found in app/javascript/react/utils/useShortenedLink.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status