@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.js CHANGED
@@ -357,7 +357,7 @@ var AuthProvider = ({ children }) => {
357
357
  }
358
358
  };
359
359
  setUser(normalizedUser);
360
- const isOwnerRole = ["owner", "admin", "super_admin"].includes(normalizedUser.role);
360
+ const isOwnerRole = normalizedUser.role === "owner";
361
361
  const hasNoCompany = !normalizedUser.company;
362
362
  setNeedsOnboarding(isOwnerRole && hasNoCompany);
363
363
  if (normalizedUser.role === "property_manager" || normalizedUser.role === "maintenance") {