palladians / pallad

Found redundant literal in a logical expression JS-W1043
Anti-pattern
Minor
a month ago2 months old
Unexpected constant truthiness on the left-hand side of a || expression
21  getTokenInfo: (networkName, ticker) => {
22    const { tokenInfo } = get()
23    const tokenId = tokenInfo[networkName]?.[ticker] ?? "undefined"
24    return { ticker: ticker, tokenId: tokenId } || undefined25  },
26  removeTokenInfo: (networkName, ticker) => {
27    set(