Comment changes

This commit is contained in:
Mustafa Buyukcelebi 2019-09-03 09:29:20 +03:00
parent 7bc2796271
commit 81e26c0a70

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 ? accounts[user.name] : [];
const { transfer_history: transferHistory } = get(accounts, user.name, []);
walletData.transactions = transferHistory
? transferHistory.slice(Math.max(transferHistory.length - 20, 0)).reverse()
: [];