@propknot/shared-ui 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -292,7 +292,7 @@ var AuthProvider = ({ children }) => {
292
292
  }
293
293
  };
294
294
  setUser(normalizedUser);
295
- const isOwnerRole = ["owner", "admin", "super_admin"].includes(normalizedUser.role);
295
+ const isOwnerRole = normalizedUser.role === "owner";
296
296
  const hasNoCompany = !normalizedUser.company;
297
297
  setNeedsOnboarding(isOwnerRole && hasNoCompany);
298
298
  if (normalizedUser.role === "property_manager" || normalizedUser.role === "maintenance") {