From b473cc3aa854de8d9c6d78c16ac108eea453ab77 Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Mon, 2 Sep 2019 10:49:03 +0300 Subject: [PATCH] Fix for transaction page loading issue --- 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 641192abc..8af08d8c1 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[user.name]; + const { transfer_history: transferHistory } = accounts ? accounts[user.name] : []; walletData.transactions = transferHistory .slice(Math.max(transferHistory.length - 20, 0)) .reverse();