Fix for transaction page loading issue

This commit is contained in:
Mustafa Buyukcelebi 2019-09-02 14:53:00 +03:00
parent b473cc3aa8
commit 57c60c433e

View File

@ -162,8 +162,8 @@ export const groomingWalletData = async (user, globalProps) => {
const { transfer_history: transferHistory } = accounts ? accounts[user.name] : [];
walletData.transactions = transferHistory
.slice(Math.max(transferHistory.length - 20, 0))
.reverse();
? transferHistory.slice(Math.max(transferHistory.length - 20, 0)).reverse()
: [];
return walletData;
};