user login
This commit is contained in:
@@ -270,8 +270,8 @@ export default function App() {
|
||||
|
||||
// Define secondary sections (Stores, Logistics, Staffing, Settings) within main body
|
||||
const renderStoresSection = () => {
|
||||
const isSoleStore = !selectedStore && storesList.length === 1;
|
||||
const activeStore = selectedStore ?? (isSoleStore ? storesList[0] : null);
|
||||
const isSoleStore = storesList.length === 1;
|
||||
const activeStore = selectedStore;
|
||||
|
||||
if (activeStore) {
|
||||
return (
|
||||
@@ -290,7 +290,7 @@ export default function App() {
|
||||
)}
|
||||
<StoreDetailView
|
||||
store={activeStore}
|
||||
onBack={selectedStore ? () => setSelectedStore(null) : undefined}
|
||||
onBack={() => setSelectedStore(null)}
|
||||
tenantId={tenantId}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user