diff --git a/components/dashboard/recent-activity.tsx b/components/dashboard/recent-activity.tsx
index fc1b91c..43e3cb4 100644
--- a/components/dashboard/recent-activity.tsx
+++ b/components/dashboard/recent-activity.tsx
@@ -14,7 +14,7 @@ export function RecentActivity({ activeTab }: DashboardProps) {
const { notifications } = useNotifications();
const filtered = notifications.filter((notif) => {
- return notif.title === "Deposit Received" || notif.title === "Tokens Sent";
+ return notif.title === "Deposit Successful" || notif.title === "Tokens Sent";
});
@@ -43,7 +43,7 @@ export function RecentActivity({ activeTab }: DashboardProps) {
key={notification.id}
>
- {notification.title === "Deposit Received" && (
+ {notification.title === "Deposit Successful" && (
@@ -63,9 +63,9 @@ export function RecentActivity({ activeTab }: DashboardProps) {
- {notification.title === "Deposit Received" && (
+ {notification.title === "Deposit Successful" && (
- {notification.details.amount}
+ {notification.details.amount} {notification.details.chain}
)}
@@ -75,7 +75,7 @@ export function RecentActivity({ activeTab }: DashboardProps) {
)}
- {notification.title === "Deposit Received" && (
+ {notification.title === "Deposit Successful" && (
{shortenAddress(notification.details.address, 6)}
)}
diff --git a/components/dashboard/stats-cards.tsx b/components/dashboard/stats-cards.tsx
index dfe0ee6..72c0ee2 100644
--- a/components/dashboard/stats-cards.tsx
+++ b/components/dashboard/stats-cards.tsx
@@ -29,7 +29,7 @@ export function StatsCards({
const balanceTrend = useBalanceTrend(totalBalance, !totalBalance);
const totalTransactions = notifications.filter((notification) => {
- return notification.title === "Deposit Received" || notification.title === "Tokens Sent";
+ return notification.title === "Deposit Successful" || notification.title === "Tokens Sent";
});
const split = notifications.filter((notification) => {
diff --git a/components/hooks/useNotifications.ts b/components/hooks/useNotifications.ts
index de4346a..dab5396 100644
--- a/components/hooks/useNotifications.ts
+++ b/components/hooks/useNotifications.ts
@@ -100,7 +100,7 @@ export const useNotifications = () => {
const [notifications, setNotifications] = useState([]);
const [unreadCount, setUnreadCount] = useState(0);
- // console.log("XXXXXXXXXXXXXXXXXXXXXXXXXX",notifications)
+ console.log("XXXXXXXXXXXXXXXXXXXXXXXXXX",notifications)
// Use useRef to track shown notifications - persists across renders without causing re-renders
const shownNotificationIds = useRef>(new Set());
diff --git a/lib/api-client.ts b/lib/api-client.ts
index b6858d4..3f63fc7 100644
--- a/lib/api-client.ts
+++ b/lib/api-client.ts
@@ -267,7 +267,7 @@ class ApiClient {
"/wallet/addresses/mainnet",
{ method: "GET" },
{
- ttl: 10 * 60 * 1000, // 10 minutes - addresses don't change often
+ ttl: 10 * 60 * 1000,
backgroundRefresh: true,
}
).then((data) => data.addresses || []);
@@ -278,7 +278,7 @@ class ApiClient {
"/wallet/balances/mainnet",
{ method: "GET" },
{
- ttl: 2 * 60 * 1000, // 2 minutes - balances change more frequently
+ ttl: 2 * 60 * 1000,
backgroundRefresh: true,
}
).then((data) => data.balances || []);