assentify-sdk-react-native 0.0.19 → 0.0.20

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/README.md CHANGED
@@ -92,6 +92,8 @@ yarn add assentify-sdk-react-native
92
92
  ```
93
93
 
94
94
  ## Versions
95
+ **0.0.20**
96
+ - Submit Improvements
95
97
 
96
98
  **0.0.19**
97
99
  - Improvements
@@ -355,12 +355,15 @@ class AssentifySdkModule(context: ReactApplicationContext) :
355
355
  val gsonSharedStepDefinitions = Gson()
356
356
  val jsonSharedStepDefinitions: String =
357
357
  sharedStepDefinitionsDoc.getString(item.stepId.toString(), "")!!
358
- val sharedStepDefinitionsStep: SubmitRequestModel =
359
- gsonSharedStepDefinitions.fromJson(
360
- jsonSharedStepDefinitions,
361
- object : TypeToken<SubmitRequestModel>() {}.type
362
- )
363
- submitRequestList.add(sharedStepDefinitionsStep)
358
+ if (jsonSharedStepDefinitions.isNotEmpty()) {
359
+ val sharedStepDefinitionsStep: SubmitRequestModel =
360
+ gsonSharedStepDefinitions.fromJson(
361
+ jsonSharedStepDefinitions,
362
+ object : TypeToken<SubmitRequestModel>() {}.type
363
+ )
364
+ submitRequestList.add(sharedStepDefinitionsStep)
365
+ }
366
+
364
367
  }
365
368
  }
366
369
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assentify-sdk-react-native",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "This package provides integration with Assentify's services, allowing developers to incorporate Assentify functionalities seamlessly into their applications.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",