Skip to content

A local-first personal finance app

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

Matiss Janis Aboltins247e3e8d93c3
diff --git a/packages/desktop-client/src/hooks/useNavigate.ts b/packages/desktop-client/src/hooks/useNavigate.ts
index 5f05bb2b1e..4361ebc022 100644
--- a/packages/desktop-client/src/hooks/useNavigate.ts
+++ b/packages/desktop-client/src/hooks/useNavigate.ts
@@ -36,9 +36,6 @@ 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
new file mode 100644
index 0000000000..4982b5a0f1
--- /dev/null
+++ b/upcoming-release-notes/2772.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [MatissJanis]
+---
+
+Fix the app randomly closing