fix
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
aovantsev
2025-10-03 14:39:41 +03:00
parent 5b2f707c1a
commit 69a9b7b689
5 changed files with 42 additions and 46 deletions

View File

@@ -222,13 +222,13 @@ export const CounterDetail: React.FC = () => {
Recent Entries
</h2>
{entries.length === 0 ? (
{(entries?.length || 0) === 0 ? (
<div className="text-center py-8 text-gray-500">
No entries yet. Start by incrementing your counter!
</div>
) : (
<div className="space-y-3">
{entries.slice(0, 10).map((entry) => (
{entries?.slice(0, 10).map((entry) => (
<div
key={entry.id}
className="flex justify-between items-center py-2 px-4 bg-gray-50 rounded-lg"