mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 12:43:09 -05:00
fix back button behavior after adding tx on mobile (#3825)
Co-authored-by: Austin Pearce <austin@apearce.dev>
This commit is contained in:
@@ -559,7 +559,7 @@ const TransactionEditInner = memo(function TransactionEditInner({
|
||||
const { account: accountId } = unserializedTransaction;
|
||||
const account = accountsById?.[accountId];
|
||||
if (account) {
|
||||
navigate(`/accounts/${account.id}`);
|
||||
navigate(`/accounts/${account.id}`, { replace: true });
|
||||
} else {
|
||||
// Handle the case where account is undefined
|
||||
navigate(-1);
|
||||
|
||||
6
upcoming-release-notes/3825.md
Normal file
6
upcoming-release-notes/3825.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [JukeboxRhino]
|
||||
---
|
||||
|
||||
Fix back button behavior after adding a new transaction on mobile
|
||||
Reference in New Issue
Block a user