Merge pull request #119 from lbryio/empty-tx-list-fix

fix for transactionList empty error on history page
This commit is contained in:
akinwale 2018-05-10 23:04:03 +01:00 committed by GitHub
commit 13fb52478f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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>