fix back button behavior after adding tx on mobile (#3825)

Co-authored-by: Austin Pearce <austin@apearce.dev>
This commit is contained in:
Austin Pearce
2024-11-12 03:58:43 -05:00
committed by GitHub
parent dd69e539d3
commit 9e478014c5
2 changed files with 7 additions and 1 deletions

View File

@@ -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);

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [JukeboxRhino]
---
Fix back button behavior after adding a new transaction on mobile