From 09ee6e584ee53f8028d19786f7d327b3afc2e58f Mon Sep 17 00:00:00 2001 From: Franz Geffke Date: Wed, 23 Aug 2023 16:21:57 +0100 Subject: [PATCH] client-web: fix error on following route --- client-web/src/routes/following.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/client-web/src/routes/following.tsx b/client-web/src/routes/following.tsx index 29ff796..f55e2e8 100644 --- a/client-web/src/routes/following.tsx +++ b/client-web/src/routes/following.tsx @@ -14,6 +14,13 @@ export function FollowingRoute() { const initDone = useRef(false); + const relayId = (relayIds: string[]) => { + if (relayIds && relayIds.length > 0) { + return relayIds[0]; + } + return ""; + }; + useEffect(() => { const init = async () => { if (initDone.current) return; @@ -36,7 +43,7 @@ export function FollowingRoute() { ))}