code cleanup round 2

This commit is contained in:
lemonknowsall committed 2025-10-15 00:10:24 -07:00
1 parent aaf12120e6
commit 2ac097d8de
9 files changed
+326 -669

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@ import { Button } from '@/components/ui/button';
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
import { Badge } from '@/components/ui/badge';
import { Loader2, History, ArrowUpRight, ArrowDownLeft, Zap, ChevronDown, ChevronUp, Coins } from 'lucide-react';
import type { HistoryEntry } from '@/hooks/cashu/useCashu';
import type { HistoryEntry } from 'coco-cashu-core';
interface TransactionHistoryProps {
entries: HistoryEntry[];
@@ -129,7 +129,7 @@ export function TransactionHistory({ entries, isLoading, isExpanded, setIsExpand
<span className="font-medium">
{getHistoryLabel(entry.type)}
</span>
{entry.state && entry.type !== 'mint' && entry.type !== 'melt' && (
{'state' in entry && entry.state && (
<Badge
variant="secondary"
className={`${getHistoryStateColor(entry.state)} text-white text-xs`}