From e532bcb8ff8e66ee97bea474386261f2f96dffd7 Mon Sep 17 00:00:00 2001 From: Gavrila Andrei Date: Mon, 30 Oct 2023 17:57:41 +0200 Subject: [PATCH] Fix transactions empty state message --- src/pages/Dashboard/widgets/Transactions/Transactions.tsx | 6 +++--- src/pages/Home/Home.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/Dashboard/widgets/Transactions/Transactions.tsx b/src/pages/Dashboard/widgets/Transactions/Transactions.tsx index 36a02f1d..bde355e2 100644 --- a/src/pages/Dashboard/widgets/Transactions/Transactions.tsx +++ b/src/pages/Dashboard/widgets/Transactions/Transactions.tsx @@ -22,10 +22,10 @@ export const Transactions = (payload: TransactionsPropsType) => { getTransactions(); }, []); - if (!isLoading && !transactions) { + if (!isLoading && transactions.length === 0) { return ( -

No transactions found

+

No transactions found

); } @@ -33,7 +33,7 @@ export const Transactions = (payload: TransactionsPropsType) => { return (
-
+
diff --git a/src/pages/Home/Home.tsx b/src/pages/Home/Home.tsx index fdce9a1a..2d70b6a8 100644 --- a/src/pages/Home/Home.tsx +++ b/src/pages/Home/Home.tsx @@ -35,7 +35,7 @@ export const Home = () => { -
+