@propknot/shared-ui 1.0.16 → 1.0.17

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
@@ -358,7 +358,8 @@ var AuthProvider = ({ children }) => {
358
358
  };
359
359
  setUser(normalizedUser);
360
360
  const isOwnerRole = normalizedUser.role === "owner";
361
- const hasNoCompany = !normalizedUser.company;
361
+ const hasNoCompany = !normalizedUser.company || normalizedUser.company === null || normalizedUser.company === void 0;
362
+ console.log("Onboarding check:", { isOwnerRole, hasNoCompany, company: normalizedUser.company });
362
363
  setNeedsOnboarding(isOwnerRole && hasNoCompany);
363
364
  if (normalizedUser.role === "property_manager" || normalizedUser.role === "maintenance") {
364
365
  try {