From 8d1f8fd104c802a83a6840fbdff5c9ad5c166b1f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 22 Feb 2026 08:01:06 +0000 Subject: [PATCH 1/2] Initial plan From bcfdd9cea57f1af143760236d57ee94cecc9682b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 22 Feb 2026 08:03:17 +0000 Subject: [PATCH 2/2] Fix redundant condition in permissions tab press logic Co-authored-by: digitalnomad91 <2067771+digitalnomad91@users.noreply.github.com> --- app/(tabs)/_layout.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/(tabs)/_layout.tsx b/app/(tabs)/_layout.tsx index 2b844c3..ff82008 100644 --- a/app/(tabs)/_layout.tsx +++ b/app/(tabs)/_layout.tsx @@ -57,9 +57,8 @@ export default function TabLayout() { tabPress: (e: { preventDefault: () => void }) => { // If already on a permissions sub-page (not the index), navigate to permissions index const isOnPermissionsSubPage = pathname.startsWith('/permissions/') && pathname !== '/permissions'; - const isOnPermissionsIndex = pathname === '/permissions' || pathname === '/(tabs)/permissions'; - - if (isOnPermissionsSubPage || isOnPermissionsIndex) { + + if (isOnPermissionsSubPage) { // Prevent default tab behavior e.preventDefault(); // Navigate to permissions index, replacing the current route to reset the stack