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:
@@ -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("");
|
||||
|
||||
Reference in New Issue
Block a user