A local-first personal finance app
fix back button behavior after adding tx on mobile (#3825)
Austin Pearce9e478014c5d0
diff --git a/packages/desktop-client/src/components/mobile/transactions/TransactionEdit.jsx b/packages/desktop-client/src/components/mobile/transactions/TransactionEdit.jsxindex e91756aa48..d23c88b743 100644--- a/packages/desktop-client/src/components/mobile/transactions/TransactionEdit.jsx+++ b/packages/desktop-client/src/components/mobile/transactions/TransactionEdit.jsx@@ -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 undefinednavigate(-1);diff --git a/upcoming-release-notes/3825.md b/upcoming-release-notes/3825.mdnew file mode 100644index 0000000000..f13d3bfcd2--- /dev/null+++ b/upcoming-release-notes/3825.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [JukeboxRhino]+---++Fix back button behavior after adding a new transaction on mobile