Skip to content

Commit

Permalink
Fix bug with reusing dates with shifted seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
ystxn committed May 26, 2024
1 parent aadf6f2 commit adae3ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transactions/add-transaction-dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const AddTransactionDialog = ({
const submit = (event) => {
event.preventDefault();
const tx = {
date: date.toISOString(),
date: (transactionToEdit ? date : date.second(0)).toISOString(),
accountId: selectedAccount?.id,
...Object.fromEntries(new FormData(event.target).entries()),
};
Expand Down

0 comments on commit adae3ca

Please sign in to comment.