Fix for transaction page loading issue

This commit is contained in:
Mustafa Buyukcelebi 2019-09-02 10:49:03 +03:00
parent 54f12c8466
commit b473cc3aa8

View File

@ -160,7 +160,7 @@ export const groomingWalletData = async (user, globalProps) => {
const timeDiff = Math.abs(parseDate(user.next_vesting_withdrawal) - new Date());
walletData.nextVestingWithdrawal = Math.ceil(timeDiff / (1000 * 3600 * 24));
const { transfer_history: transferHistory } = accounts[user.name];
const { transfer_history: transferHistory } = accounts ? accounts[user.name] : [];
walletData.transactions = transferHistory
.slice(Math.max(transferHistory.length - 20, 0))
.reverse();