@movalib/movalib-commons 1.68.10 → 1.68.11

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.
@@ -80,7 +80,7 @@ var Event = /** @class */ (function () {
80
80
  }
81
81
  }
82
82
  else {
83
- return ((_e = quoteDocument.find(function (doc) { return doc.state === Enums_1.DocumentState.APPROVED; })) !== null && _e !== void 0 ? _e : null);
83
+ return ((_e = quoteDocument.find(function (doc) { return doc.state === Enums_1.DocumentState.APPROVED && doc.sinaoDocumentId === null; })) !== null && _e !== void 0 ? _e : null);
84
84
  }
85
85
  }
86
86
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.68.10",
3
+ "version": "1.68.11",
4
4
  "description": "Bibliothèque d'objets communs à l'ensemble des projets React de Movalib",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -251,7 +251,7 @@ export default class Event {
251
251
  }
252
252
  else {
253
253
  return (
254
- quoteDocument.find((doc) => doc.state === DocumentState.APPROVED) ??
254
+ quoteDocument.find((doc) => doc.state === DocumentState.APPROVED && doc.sinaoDocumentId === null) ??
255
255
  null
256
256
  );
257
257
  }