palladians / pallad

Detected the use of variables before they are defined JS-0357
Anti-pattern
Major
20 days ago2 months old
'fetchConnectedApps' was used before it was defined
15  const [connectedApps, setConnectedApps] = useState([] as ZkApp[])
16
17  useEffect(() => {
18    fetchConnectedApps()19  }, [])
20
21  const fetchConnectedApps = async () => {
'publicKey' was used before it was defined
20  )
21  const fetchWallet = async () => {
22    await _syncWallet()
23    const accountInfo = getAccountsInfo(currentNetworkName, publicKey)24    const chain = currentWallet.credential.credential?.chain
25    const props = getAccountProperties(
26      accountInfo.accountInfo,