Skip to content

Commit

Permalink
Imrpove user feedback for responsibility sets actions
Browse files Browse the repository at this point in the history
  • Loading branch information
testower committed Dec 13, 2023
1 parent 8cd12c8 commit dba24af
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions src/actions/OrganizationRegisterActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,13 @@ OrganizationRegisterActions.getResponbilitySets = () => async (
);
})
.catch(error => {
console.log('Error responsibility_sets users', error);
dispatch(
SuppliersActions.addNotification(
'Error getting responsibility sets',
'error'
)
);
console.log('Error getting responsibility sets: ' + error.message);
});
};

Expand All @@ -360,7 +366,13 @@ OrganizationRegisterActions.createResponsibilitySet = responsibilitySet => async
dispatch(OrganizationRegisterActions.getResponbilitySets());
})
.catch(error => {
dispatch(sendData(types.FAILED_CREATING_ORGANIZATION, error));
dispatch(
SuppliersActions.addNotification(
'Error creating responsibility set',
'error'
)
);
console.log('Error creating responsibility set: ' + error.message);
});
};

Expand Down Expand Up @@ -450,7 +462,13 @@ OrganizationRegisterActions.updateResponsibilitySet = responsibilitySet => async
dispatch(OrganizationRegisterActions.getResponbilitySets());
})
.catch(error => {
console.log('Error updating responsibility set', error);
dispatch(
SuppliersActions.addNotification(
'Error updating responsibility set',
'error'
)
);
console.log('Error updating responsibility set: ' + error.message);
});
};

Expand Down

0 comments on commit dba24af

Please sign in to comment.