tangled
alpha
login
or
join now
teal.fm
/
teal
109
fork
atom
Your music, beautifully tracked. All yours. (coming soon)
teal.fm
teal-fm
atproto
109
fork
atom
overview
issues
pulls
pipelines
handle both cases
Natalie B
10 months ago
b4828586
ab00c4c8
+3
-1
1 changed file
expand all
collapse all
unified
split
apps
amethyst
app
(tabs)
profile
[handle].tsx
+3
-1
apps/amethyst/app/(tabs)/profile/[handle].tsx
···
15
const [did, setDid] = useState<string | null>(null);
16
useEffect(() => {
17
const fetchAgent = async () => {
18
-
const agent = await resolveHandle(handle);
0
0
19
setDid(agent);
20
};
21
if (handle !== "undefined") fetchAgent();
···
15
const [did, setDid] = useState<string | null>(null);
16
useEffect(() => {
17
const fetchAgent = async () => {
18
+
const agent = await resolveHandle(
19
+
typeof handle === "string" ? handle : handle[0] && handle[0],
20
+
);
21
setDid(agent);
22
};
23
if (handle !== "undefined") fetchAgent();