@propknot/shared-ui 1.0.15 → 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 +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -292,8 +292,9 @@ var AuthProvider = ({ children }) => {
|
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
294
|
setUser(normalizedUser);
|
|
295
|
-
const isOwnerRole =
|
|
296
|
-
const hasNoCompany = !normalizedUser.company;
|
|
295
|
+
const isOwnerRole = normalizedUser.role === "owner";
|
|
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 {
|