@opencrvs/toolkit 1.9.22 → 1.9.23-rc.0c2d925

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.
@@ -5621,8 +5621,8 @@ function getActionRequests(actionType, actions) {
5621
5621
  (action) => action.status === ActionStatus.Accepted
5622
5622
  );
5623
5623
  const request = filtered.find(
5624
- (action) => action.status === ActionStatus.Requested
5625
- );
5624
+ (action) => action.status === ActionStatus.Requested && action.id === accept?.originalActionId
5625
+ ) ?? filtered.find((action) => action.status === ActionStatus.Requested);
5626
5626
  const reject = filtered.find(
5627
5627
  (action) => action.status === ActionStatus.Rejected
5628
5628
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "1.9.22",
3
+ "version": "1.9.23-rc.0c2d925",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "exports": {