this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

default to identity tab when error

Juliet 99aebb6a ed34ac44

+4 -4
+4 -4
src/views/repo.tsx
··· 59 59 "flex flex-1 items-center border-b-2": true, 60 60 "border-transparent group-hover:border-neutral-400 dark:group-hover:border-neutral-600": 61 61 (location.hash !== `#${props.tab}` && !!location.hash) || 62 - (!location.hash && props.tab !== "collections"), 62 + (!location.hash && 63 + ((!error() && props.tab !== "collections") || 64 + (!!error() && props.tab !== "identity"))), 63 65 }} 64 66 > 65 67 {props.label} ··· 101 103 102 104 if (!pds) { 103 105 setError("Missing PDS"); 104 - navigate(`/at://${params.repo}#identity`); 105 106 return {}; 106 107 } 107 108 ··· 134 135 default: 135 136 setError("Unreachable"); 136 137 } 137 - navigate(`/at://${params.repo}#identity`); 138 138 } 139 139 140 140 return res.data; ··· 335 335 </For> 336 336 </div> 337 337 </Show> 338 - <Show when={location.hash === "#identity"}> 338 + <Show when={location.hash === "#identity" || (error() && !location.hash)}> 339 339 <Show when={didDoc()}> 340 340 {(didDocument) => ( 341 341 <div class="flex flex-col gap-y-1 wrap-anywhere">