From 99aebb6a2fbe8f1fb0843d24723e9889a2c9c504 Mon Sep 17 00:00:00 2001 From: Juliet Date: Thu, 30 Oct 2025 15:00:55 +0100 Subject: [PATCH] default to identity tab when error --- src/views/repo.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/repo.tsx b/src/views/repo.tsx index f442f25..e694d82 100644 --- a/src/views/repo.tsx +++ b/src/views/repo.tsx @@ -59,7 +59,9 @@ export const RepoView = () => { "flex flex-1 items-center border-b-2": true, "border-transparent group-hover:border-neutral-400 dark:group-hover:border-neutral-600": (location.hash !== `#${props.tab}` && !!location.hash) || - (!location.hash && props.tab !== "collections"), + (!location.hash && + ((!error() && props.tab !== "collections") || + (!!error() && props.tab !== "identity"))), }} > {props.label} @@ -101,7 +103,6 @@ export const RepoView = () => { if (!pds) { setError("Missing PDS"); - navigate(`/at://${params.repo}#identity`); return {}; } @@ -134,7 +135,6 @@ export const RepoView = () => { default: setError("Unreachable"); } - navigate(`/at://${params.repo}#identity`); } return res.data; @@ -335,7 +335,7 @@ export const RepoView = () => { - + {(didDocument) => (
-- 2.51.2