Update 7project/frontend/src/pages/Dashboard.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Dejan Ribarovski
2025-10-23 12:53:39 +02:00
committed by GitHub
parent e488771cc7
commit 9fc8601e4d

View File

@@ -133,7 +133,6 @@ export default function Dashboard({ onLogout }: { onLogout: () => void }) {
}
}
setTransactions(prev => [...newTransactions, ...prev].sort((a, b) => new Date(b.date || 0).getTime() - new Date(a.date || 0).getTime()));
setIsGenerating(false);
alert(`${newTransactions.length} mock transactions were successfully generated!`);