astra-sdk-web 1.1.11 → 1.1.12

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.
@@ -662,8 +662,8 @@ function DocumentUploadModal({ onComplete }) {
662
662
  await apiService.uploadDocument(blob, docType);
663
663
  try {
664
664
  const statusResponse = await apiService.getSessionStatus();
665
- const { completed_steps, status } = statusResponse.data;
666
- if (status === "COMPLETED" || completed_steps.includes(COMPLETED_STEPS.COMPLETED)) {
665
+ const { completed_steps, next_step } = statusResponse.data;
666
+ if (next_step === "completed" || completed_steps.includes(COMPLETED_STEPS.COMPLETED)) {
667
667
  setKycCompleted(true);
668
668
  }
669
669
  } catch (error) {