Your music, beautifully tracked. All yours. (coming soon) teal.fm
teal-fm atproto

handle both cases

Natalie B b4828586 ab00c4c8

+3 -1
+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); 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();