fix for transactionList empty error on history page
This commit is contained in:
parent
614069e342
commit
15125159bb
1 changed files with 4 additions and 1 deletions
|
@ -17,7 +17,10 @@ class TransactionHistoryPage extends React.PureComponent {
|
||||||
{fetchingTransactions && !transactions.length && (
|
{fetchingTransactions && !transactions.length && (
|
||||||
<Text style={walletStyle.infoText}>Loading transactions...</Text>
|
<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} />
|
<TransactionList navigation={navigation} transactions={transactions} />
|
||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
|
|
Loading…
Reference in a new issue