From a40b77a66b0fdaf991aa630465822fb3d6913ada Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Sat, 2 Nov 2024 10:54:10 -0400 Subject: [PATCH] prevent the following feed from auto-selecting a user under the mobile UI --- packages/frontend/src/pages/following-feed.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/pages/following-feed.vue b/packages/frontend/src/pages/following-feed.vue index a8d6a21795..33de5b01ea 100644 --- a/packages/frontend/src/pages/following-feed.vue +++ b/packages/frontend/src/pages/following-feed.vue @@ -64,14 +64,14 @@ const selectedUserId: Ref = ref(null); function listReady(initialUserId?: string): void { if (initialUserId && !selectedUserId.value) { - userSelected(initialUserId); + selectedUserId.value = initialUserId; } } function userSelected(userId: string): void { - if (userScroll.value?.showing) { - selectedUserId.value = userId; - } else { + selectedUserId.value = userId; + + if (!userScroll.value?.showing) { router.push(`/following-feed/${userId}`); } }