Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
3363db9f36
commit
5557baa643
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user