user login

This commit is contained in:
2026-07-22 17:42:09 +05:30
parent 58c42d9013
commit d196d56929
5 changed files with 16 additions and 11 deletions

View File

@@ -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>