Add comma formatting to edit dialog
Adds comma formatting to the amount input field in the transaction edit dialog.
This commit is contained in:
@@ -41,7 +41,7 @@ const TransactionEditDialog: React.FC<TransactionEditDialogProps> = ({
|
||||
resolver: zodResolver(formSchema),
|
||||
defaultValues: {
|
||||
title: transaction.title,
|
||||
amount: transaction.amount.toString(),
|
||||
amount: formatWithCommas(transaction.amount.toString()),
|
||||
category: transaction.category as any,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user