From e7b0fea94b0c9347c25d489dcb30e00f9864b662 Mon Sep 17 00:00:00 2001 From: Shekhar Vaidya Date: Mon, 18 May 2026 12:11:35 +0530 Subject: [PATCH] fix(frontend): fix TypeScript error in Back button navigate call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Split ternary into two separate navigate() calls to satisfy TypeScript overload resolution — navigate(delta: number) and navigate(to: To) are distinct overloads that cannot share a ternary return type. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/pages/ProductDetailPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/ProductDetailPage.tsx b/frontend/src/pages/ProductDetailPage.tsx index 28f5b38..7872eae 100644 --- a/frontend/src/pages/ProductDetailPage.tsx +++ b/frontend/src/pages/ProductDetailPage.tsx @@ -213,7 +213,7 @@ export default function ProductDetailPage() {
{/* Back */}