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'
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user