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.
@@ -459,8 +459,8 @@ function DocumentUploadModal({ onComplete }) {
459
459
  await apiService.uploadDocument(blob, docType);
460
460
  try {
461
461
  const statusResponse = await apiService.getSessionStatus();
462
- const { completed_steps, status } = statusResponse.data;
463
- if (status === "COMPLETED" || completed_steps.includes(COMPLETED_STEPS.COMPLETED)) {
462
+ const { completed_steps, next_step } = statusResponse.data;
463
+ if (next_step === "completed" || completed_steps.includes(COMPLETED_STEPS.COMPLETED)) {
464
464
  setKycCompleted(true);
465
465
  }
466
466
  } catch (error) {