Open the-frey opened 2 years ago
At the top of react hooks, we have a lot of short-circuit code like
if (!tokenName || !signingClient || !walletAddress) { return }
basically we should identify all the query/guard cases, make a namespace of them, add some unit tests and stick it under utils. Then just say e.g.
if (noTokenClientAddress(name, client, address)) return
obviously with a better name than that 😂
At the top of react hooks, we have a lot of short-circuit code like
basically we should identify all the query/guard cases, make a namespace of them, add some unit tests and stick it under utils. Then just say e.g.
obviously with a better name than that 😂