From b482858695364da754f03d92597ff22fdcbec781 Mon Sep 17 00:00:00 2001 From: Natalie B <22222885+espeon@users.noreply.github.com> Date: Sun, 11 May 2025 16:39:47 -0500 Subject: [PATCH] handle both cases --- apps/amethyst/app/(tabs)/profile/[handle].tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); -- 2.51.2