Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-26 08:38:57 +00:00
co-authored by renee-png
parent 3363db9f36
commit 5557baa643
+4 -4
View File
@@ -8,7 +8,7 @@ import { formatCurrency } from "@/lib/format";
export interface EditableEntry {
id: string;
entry_date: string;
entry_date: string | null;
description: string | null;
account: string | null;
assess: number;
@@ -84,9 +84,9 @@ export function SortableLedgerRow({ entry, onPatch, onRemove }: Props) {
<td className="px-1 py-1">
<input
type="date"
value={draft.entry_date}
onChange={(e) => setDraft((d) => ({ ...d, entry_date: e.target.value }))}
onBlur={(e) => commit("entry_date", e.target.value)}
value={draft.entry_date ?? ""}
onChange={(e) => setDraft((d) => ({ ...d, entry_date: e.target.value || null }))}
onBlur={(e) => commit("entry_date", e.target.value || (null as any))}
className="w-full bg-transparent border border-transparent hover:border-border focus:border-ring rounded px-1.5 py-1 text-xs outline-none"
/>
</td>