Addressing code rabbit comments

Fixed some issues code rabbit raised

Signed-off-by: Lance Chant <13349722+lancechant@users.noreply.github.com>
This commit is contained in:
Lance Chant
2026-06-24 14:53:31 +02:00
parent 25d7b17fcd
commit 3d93c2cecb
2 changed files with 12 additions and 4 deletions

View File

@@ -50,7 +50,8 @@ function TVTabLayout() {
const router = useRouter();
const currentTab = segments.find(isTabRoute);
const atTabRoot = isTabRoute(segments[segments.length - 1] ?? "");
const lastSegment = segments[segments.length - 1] ?? "";
const atTabRoot = isTabRoute(lastSegment) || lastSegment === "index";
const tabs: TVNavBarTab[] = useMemo(
() =>