idmission-web-sdk 2.2.167 → 2.2.168

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.
@@ -211,7 +211,7 @@
211
211
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
212
212
  };
213
213
 
214
- var webSdkVersion = '2.2.167';
214
+ var webSdkVersion = '2.2.168';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -18010,7 +18010,10 @@
18010
18010
  });
18011
18011
  });
18012
18012
  }, [uploadDocument]);
18013
+ var sessionCheckState = useAuthContext()[0].sessionCheckState;
18014
+ var sessionReady = sessionCheckState === 'PASSED';
18013
18015
  React.useEffect(function () {
18016
+ if (!sessionReady) return;
18014
18017
  var resolvedDocuments = (documents === null || documents === void 0 ? void 0 : documents.length) ? documents.map(function (d) {
18015
18018
  return _assign(_assign({
18016
18019
  title: 'Document Capture',
@@ -18037,7 +18040,7 @@
18037
18040
  void uploadCapturedDocument(d.content, d.content.type);
18038
18041
  }
18039
18042
  });
18040
- }, [aspectRatio, cameraFeedMode, documents, instructions, uploadCapturedDocument]);
18043
+ }, [aspectRatio, cameraFeedMode, documents, instructions, sessionReady, uploadCapturedDocument]);
18041
18044
  React.useEffect(function () {
18042
18045
  dispatch({
18043
18046
  type: 'setHooks',