Fix search bar navigation and disclaimer modal behavior

This commit is contained in:
plebeius
2026-01-03 19:02:59 +01:00
parent 7cb74304fb
commit 352466ecf3
2 changed files with 7 additions and 9 deletions
+3 -6
View File
@@ -37,13 +37,10 @@ const useDisclaimerModalStore = create<DisclaimerModalState>((set) => ({
// Check if user has already accepted the disclaimer
if (hasAcceptedDisclaimer()) {
// If there's a valid board path, navigate directly
if (boardPath) {
navigate(`/${boardPath}`);
return;
const path = boardPath || address;
if (path) {
navigate(`/${path}`);
}
// If no board path (placeholder), don't navigate - we'll handle this separately
// Don't show disclaimer modal either since it's already accepted
// Caller should handle showing directory modal or other UI
return;
}