packages/widget/src/hooks/useBridgeSelectionData.ts
Function useBridgeSelectionData
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useBridgeSelectionData = (): BridgeSelections => {
const [originChain, setOriginChain] = useState('')
const [originToken, setOriginToken] = useState('')
const [destinationChain, setDestinationChain] = useState('')
const [destinationToken, setDestinationToken] = useState('')
Consider simplifying this complex logical expression. Open
Open
if (
originChainSelect &&
destinationChainSelect &&
originTokenSelect &&
destinationTokenSelect
Function checkElements
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const checkElements = () => {
originChainSelect = document.getElementById('origin-chain-select')
destinationChainSelect = document.getElementById(
'destination-chain-select'
)