diff --git a/js/transaction.ts b/js/transaction.ts index 59f453c..4a31fc1 100644 --- a/js/transaction.ts +++ b/js/transaction.ts @@ -96,7 +96,13 @@ async function submitForm(data: FormData) { btnsubmit.loading = false; if (r) { if (r.ok) { - notify("Successfully updated transaction"); + notify( + "Successfully updated transaction", + undefined, + undefined, + null, + ); + window.location.href = "/transactions"; } else { const html = await r.text(); if (html) {