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.
@@ -465,8 +465,8 @@ function DocumentUploadModal({ onComplete }) {
465
465
  await apiService.uploadDocument(blob, docType);
466
466
  try {
467
467
  const statusResponse = await apiService.getSessionStatus();
468
- const { completed_steps, status } = statusResponse.data;
469
- if (status === "COMPLETED" || completed_steps.includes(COMPLETED_STEPS.COMPLETED)) {
468
+ const { completed_steps, next_step } = statusResponse.data;
469
+ if (next_step === "completed" || completed_steps.includes(COMPLETED_STEPS.COMPLETED)) {
470
470
  setKycCompleted(true);
471
471
  }
472
472
  } catch (error) {