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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astra-sdk-web",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "Official Astra SDK for JavaScript/TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/astra-sdk.cjs.js",
@@ -33,8 +33,8 @@ function DocumentUploadModal({ onComplete }: DocumentUploadModalProps) {
33
33
  // Check if KYC is completed after document upload
34
34
  try {
35
35
  const statusResponse = await apiService.getSessionStatus();
36
- const { completed_steps, status } = statusResponse.data;
37
- if (status === 'COMPLETED' || completed_steps.includes(COMPLETED_STEPS.COMPLETED)) {
36
+ const { completed_steps, next_step } = statusResponse.data;
37
+ if (next_step === 'completed' || completed_steps.includes(COMPLETED_STEPS.COMPLETED)) {
38
38
  setKycCompleted(true);
39
39
  }
40
40
  } catch (error) {
@@ -103,7 +103,6 @@ function DocumentUploadModal({ onComplete }: DocumentUploadModalProps) {
103
103
  }, [apiService, navigate]);
104
104
 
105
105
 
106
- // Show KYC completion message
107
106
  if (kycCompleted) {
108
107
  return (
109
108
  <div className="fixed inset-0 bg-black p-5 z-[1000] flex items-center justify-center font-sans overflow-y-auto custom__scrollbar">