From f921b15d671b774d7e65de3683c6ba8a0a79b41f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoni=20Nu=C3=B1ez=20Romeu?= Date: Mon, 13 Jul 2026 19:50:24 +0200 Subject: [PATCH] fix(frontend): set screen to 'product' when navigating to product detail - Add setScreen('product') to onNavigateToProduct callback - ProductView was never rendered because screen stayed as 'search' --- apps/frontend/src/App.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/frontend/src/App.jsx b/apps/frontend/src/App.jsx index 2f468ce..30c3497 100644 --- a/apps/frontend/src/App.jsx +++ b/apps/frontend/src/App.jsx @@ -182,7 +182,10 @@ function App() { currentUser={currentUser} onLoginRequest={() => setShowLogin(true)} initialQuery={prescriptionSearch} - onNavigateToProduct={(source, id) => setProductScreen({ source, id })} + onNavigateToProduct={(source, id) => { + setProductScreen({ source, id }); + setScreen('product'); + }} /> ); break;