@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.mjs CHANGED
@@ -293,7 +293,8 @@ var AuthProvider = ({ children }) => {
293
293
  };
294
294
  setUser(normalizedUser);
295
295
  const isOwnerRole = normalizedUser.role === "owner";
296
- const hasNoCompany = !normalizedUser.company;
296
+ const hasNoCompany = !normalizedUser.company || normalizedUser.company === null || normalizedUser.company === void 0;
297
+ console.log("Onboarding check:", { isOwnerRole, hasNoCompany, company: normalizedUser.company });
297
298
  setNeedsOnboarding(isOwnerRole && hasNoCompany);
298
299
  if (normalizedUser.role === "property_manager" || normalizedUser.role === "maintenance") {
299
300
  try {