From 81e26c0a707015da568f9979c58b73a19deca9f2 Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Tue, 3 Sep 2019 09:29:20 +0300 Subject: [PATCH] Comment changes --- src/utils/wallet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/wallet.js b/src/utils/wallet.js index f1eee83e8..f3b9870b7 100644 --- a/src/utils/wallet.js +++ b/src/utils/wallet.js @@ -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() : [];