mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-09-27 19:24:49 +02:00
Fix falsy redirect after store init
This commit is contained in:
@@ -43,7 +43,9 @@ const createTenantsStore = () => {
|
||||
auth.setTenantId(tenantId);
|
||||
return { ...state, currentTenant };
|
||||
});
|
||||
goto(ROUTES.DASHBOARD.MAIN);
|
||||
if (tenantId !== curTenant) {
|
||||
goto(ROUTES.DASHBOARD.MAIN);
|
||||
}
|
||||
},
|
||||
reload: async () => {
|
||||
store.update((state) => {
|
||||
|
||||
Reference in New Issue
Block a user