Add null check

This commit is contained in:
Aditya Kulkarni 2020-04-05 16:41:51 -07:00
parent 1d5795a170
commit 4c65a171fc
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ class Transactions extends Component<Props, State> {
const { transactions, info, addressBook, setSendTo } = this.props;
const { clickedTx, modalIsOpen, numTxnsToShow } = this.state;
const isLoadMoreEnabled = numTxnsToShow < transactions.length;
const isLoadMoreEnabled = transactions && numTxnsToShow < transactions.length;
const addressBookMap = addressBook.reduce((map, obj) => {
// eslint-disable-next-line no-param-reassign