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 15 const [did, setDid] = useState<string | null>(null); 16 16 useEffect(() => { 17 17 const fetchAgent = async () => { 18 - const agent = await resolveHandle(handle); 18 + const agent = await resolveHandle( 19 + typeof handle === "string" ? handle : handle[0] && handle[0], 20 + ); 19 21 setDid(agent); 20 22 }; 21 23 if (handle !== "undefined") fetchAgent();