oceanprotocol/status

View on GitHub
src/components/Network/Status.tsx

Summary

Maintainability
A
1 hr
Test Coverage
A
92%

Showing 1 of 1 total issue

Function Status has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
Open

export default function Status({ network }: { network: NetworkProps }) {
const { rpcUrl, explorerUrl } = network
const [status, setStatus] = useState('')
const [block, setBlock] = useState<number | null>(0)
const [latency, setLatency] = useState<number | null>(0)
Severity: Minor
Found in src/components/Network/Status.tsx - About 1 hr to fix
Category
Status