diff --git a/web/src/components/dashboard/RecentActivity.jsx b/web/src/components/dashboard/RecentActivity.jsx index 2703738..c01c5c4 100644 --- a/web/src/components/dashboard/RecentActivity.jsx +++ b/web/src/components/dashboard/RecentActivity.jsx @@ -22,7 +22,7 @@ import { ArrowUpRight, Clock, Inbox } from 'lucide-react'; import { renderQuota, renderNumber, timestamp2string } from '../../helpers'; const isSuccess = (l) => - l?.type === 0 || l?.status === 0 || l?.type === 'success' || l?.type === undefined; + l?.type === 0 || l?.type === 1 || l?.type === 2 || l?.status === 0 || l?.type === 'success' || l?.type === undefined; const RecentActivity = ({ logs = [], className = '' }) => { const recent = useMemo(() => logs.slice(0, 10), [logs]); diff --git a/web/src/hooks/dashboard/useDashboardData.js b/web/src/hooks/dashboard/useDashboardData.js index 81eae9b..a36542e 100644 --- a/web/src/hooks/dashboard/useDashboardData.js +++ b/web/src/hooks/dashboard/useDashboardData.js @@ -23,7 +23,7 @@ import { API, isAdmin, showError } from '../../helpers'; const PAGE_SIZE = 200; const isSuccess = (l) => - l?.type === 0 || l?.status === 0 || l?.type === 'success'; + l?.type === 0 || l?.type === 1 || l?.type === 2 || l?.status === 0 || l?.type === 'success'; const sum = (arr, key) => arr.reduce((s, l) => s + (Number(l[key]) || 0), 0);