The`BCH.RawTransactions.getTxData(txid) function from bch-js` chokes on transactions with a large amount of inputs. In this case, it returns undefined instead of an object.
This means that if your wallet has such a tx in the last 5 txs, it will always through an API rate limit error, making Cashtab impossible to use.
This diff catches such cases and omits them from the tx history.
This fix prevents the wallet crash error. However, a more permanent way to deal with this would be to improve the function in bch-js.