fix for transactionList empty error on history page

This commit is contained in:
Akinwale Ariwodola 2018-05-10 23:02:10 +01:00
parent 614069e342
commit 15125159bb

View file

@ -17,7 +17,10 @@ class TransactionHistoryPage extends React.PureComponent {
{fetchingTransactions && !transactions.length && (
<Text style={walletStyle.infoText}>Loading transactions...</Text>
)}
{transactions && transactions.length && (
{!fetchingTransactions && transactions.length === 0 && (
<Text style={walletStyle.infoText}>No transactions to list.</Text>
)}
{!fetchingTransactions && transactions && (transactions.length > 0) && (
<TransactionList navigation={navigation} transactions={transactions} />
)}
</View>