@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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -292,7 +292,7 @@ var AuthProvider = ({ children }) => {
|
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
294
|
setUser(normalizedUser);
|
|
295
|
-
const isOwnerRole =
|
|
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") {
|