From 300db9c88136fc098c094859fbada10e771b23d9 Mon Sep 17 00:00:00 2001 From: rare-magma Date: Tue, 27 Aug 2024 22:46:49 +0200 Subject: [PATCH] fix: open last visited budget during startup Signed-off-by: rare-magma --- index.html | 6 ++++++ src/hooks/useMove.ts | 1 + 2 files changed, 7 insertions(+) diff --git a/index.html b/index.html index 0ca388ab..6be40e22 100644 --- a/index.html +++ b/index.html @@ -28,6 +28,12 @@ + guitos diff --git a/src/hooks/useMove.ts b/src/hooks/useMove.ts index 31464f81..4514fb40 100644 --- a/src/hooks/useMove.ts +++ b/src/hooks/useMove.ts @@ -25,6 +25,7 @@ export function useMove() { } }, 100); navigate(`/${selectedBudget[0].name}`); + localStorage.setItem("guitos_lastOpenedBudget", selectedBudget[0].name); } }