Fix account select showing cuid instead of name in transaction filters

This commit is contained in:
2026-04-21 11:05:11 -04:00
parent 62ca178308
commit 0ea6a7c698

View File

@@ -52,7 +52,9 @@ export function TransactionFilters({ accounts }: { accounts: AccountOption[] })
<Label className="text-xs">Account</Label>
<Select value={sp('accountId')} onValueChange={(v) => push({ accountId: v ?? '' })}>
<SelectTrigger className="h-8 w-44 text-sm">
<SelectValue placeholder="All accounts" />
<SelectValue placeholder="All accounts">
{accounts.find((a) => a.id === sp('accountId'))?.name ?? 'All accounts'}
</SelectValue>
</SelectTrigger>
<SelectContent>
<SelectItem value="">All accounts</SelectItem>