fix(payment): crash on open due to amount.toFixed on numeric string

feat(shared): tag filter on shared transactions list
This commit is contained in:
2026-03-14 21:27:08 +11:00
parent 084b8764e3
commit 02ac136e19
5 changed files with 81 additions and 18 deletions
+1 -1
View File
@@ -225,7 +225,7 @@ function MarkAsPaymentModal({
const [direction, setDirection] = useState<"received" | "sent">(
SPEND_TYPES.has(transaction.transaction_type) ? "sent" : "received"
);
const [amount, setAmount] = useState(transaction.amount.toFixed(2));
const [amount, setAmount] = useState(Number(transaction.amount).toFixed(2));
const [date, setDate] = useState(transaction.transaction_date.slice(0, 10));
const [notes, setNotes] = useState("");
const [error, setError] = useState("");