sparkletown/sparkle

View on GitHub
src/hooks/useRadio.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function useRadio has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useRadio = (playRadio: boolean, audio?: HTMLAudioElement) => {
  const [volume, setVolume] = useState<number>(10);

  const loadedInitialState = useRef(false);

Severity: Minor
Found in src/hooks/useRadio.ts - About 1 hr to fix

There are no issues that match your filters.

Category
Status