@opencrvs/toolkit 1.9.6-rc.3fe98ad → 1.9.6-rc.40da3a9

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.
@@ -3896,11 +3896,14 @@ function isRequestedAction(a) {
3896
3896
  function isAcceptedAction(a) {
3897
3897
  return a.status === ActionStatus.Accepted;
3898
3898
  }
3899
+ function isRejectedAction(a) {
3900
+ return a.status === ActionStatus.Rejected;
3901
+ }
3899
3902
  function getPendingAction(actions) {
3900
3903
  const requestedActions = actions.filter(isRequestedAction);
3901
3904
  const pendingActions = requestedActions.filter(
3902
3905
  ({ id }) => !actions.some(
3903
- (action) => isAcceptedAction(action) && action.originalActionId === id
3906
+ (action) => (isAcceptedAction(action) || isRejectedAction(action)) && action.originalActionId === id
3904
3907
  )
3905
3908
  );
3906
3909
  if (pendingActions.length !== 1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "1.9.6-rc.3fe98ad",
3
+ "version": "1.9.6-rc.40da3a9",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "exports": {