Skip to content

A local-first personal finance app

Revert ":bug: fix the app randomly navigating back (closing) (#2772)" (#2966)

Matiss Janis Aboltins7f30680fb304
diff --git a/packages/desktop-client/src/hooks/useNavigate.ts b/packages/desktop-client/src/hooks/useNavigate.ts
index 4361ebc022..5f05bb2b1e 100644
--- a/packages/desktop-client/src/hooks/useNavigate.ts
+++ b/packages/desktop-client/src/hooks/useNavigate.ts
@@ -36,6 +36,9 @@ export function useNavigate(): NavigateFunction {
JSON.stringify(previousOriginalState)
) {
navigate(to, optionsWithPrevLocation);
+ } else {
+ // `to` is the same as the previous location. Just go back.
+ navigate(-1);
}
}
},
diff --git a/upcoming-release-notes/2772.md b/upcoming-release-notes/2772.md
deleted file mode 100644
index 4982b5a0f1..0000000000
--- a/upcoming-release-notes/2772.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-category: Bugfix
-authors: [MatissJanis]
----
-
-Fix the app randomly closing