Skip to content

Commit

Permalink
Merge branch '#232' into fix/qoh-card
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Dec 19, 2023
2 parents 9ce60f9 + c1e0c12 commit dcdbcf0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/store/modules/user/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ const actions: ActionTree<UserState, RootState> = {
const isAdminUser = appPermissions.some((appPermission: any) => appPermission?.action === "APP_INVCUNT_ADMIN" );
const baseURL = store.getters['user/getBaseUrl'];
const facilities = await getUserFacilities(token, baseURL, userProfile?.partyId, "", isAdminUser);

if (!facilities.length) throw 'Unable to login. User is not assocaited with any facility'

userProfile.facilities = facilities;

// removing duplicate records as a single user can be associated with a facility by multiple roles.
Expand Down

0 comments on commit dcdbcf0

Please sign in to comment.