From 57c60c433e003f4a1a5a53812fef4c7f997e9edb Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Mon, 2 Sep 2019 14:53:00 +0300 Subject: [PATCH] Fix for transaction page loading issue --- src/utils/wallet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/wallet.js b/src/utils/wallet.js index 8af08d8c1..f1eee83e8 100644 --- a/src/utils/wallet.js +++ b/src/utils/wallet.js @@ -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; };