diff --git a/apps/amethyst/app/(tabs)/profile/[handle].tsx b/apps/amethyst/app/(tabs)/profile/[handle].tsx index 1478f02..4ceaa6b 100644 --- a/apps/amethyst/app/(tabs)/profile/[handle].tsx +++ b/apps/amethyst/app/(tabs)/profile/[handle].tsx @@ -15,7 +15,9 @@ export default function Handle() { const [did, setDid] = useState(null); useEffect(() => { const fetchAgent = async () => { - const agent = await resolveHandle(handle); + const agent = await resolveHandle( + typeof handle === "string" ? handle : handle[0] && handle[0], + ); setDid(agent); }; if (handle !== "undefined") fetchAgent();