@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.js
CHANGED
|
@@ -357,7 +357,7 @@ var AuthProvider = ({ children }) => {
|
|
|
357
357
|
}
|
|
358
358
|
};
|
|
359
359
|
setUser(normalizedUser);
|
|
360
|
-
const isOwnerRole =
|
|
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") {
|