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.
@@ -670,8 +670,8 @@ function DocumentUploadModal({ onComplete }) {
670
670
  await apiService.uploadDocument(blob, docType);
671
671
  try {
672
672
  const statusResponse = await apiService.getSessionStatus();
673
- const { completed_steps, status } = statusResponse.data;
674
- if (status === "COMPLETED" || completed_steps.includes(COMPLETED_STEPS.COMPLETED)) {
673
+ const { completed_steps, next_step } = statusResponse.data;
674
+ if (next_step === "completed" || completed_steps.includes(COMPLETED_STEPS.COMPLETED)) {
675
675
  setKycCompleted(true);
676
676
  }
677
677
  } catch (error) {