react-native-zyprotectabio-module 1.1.13 → 1.1.14

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.
@@ -65,9 +65,17 @@ RCT_EXPORT_METHOD(onZyBioCapture:(NSDictionary *)opcional
65
65
  if (value == nil || value == [NSNull null]) {
66
66
  return defaultValue;
67
67
  }
68
+
68
69
  if ([value isKindOfClass:[NSNumber class]]) {
69
- return value;
70
+ NSNumber *number = (NSNumber *)value;
71
+
72
+ if ([number integerValue] == 0) {
73
+ return defaultValue;
74
+ }
75
+
76
+ return number;
70
77
  }
78
+
71
79
  return defaultValue;
72
80
  }
73
81
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-zyprotectabio-module",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "description": "React Native native module for ZyProtecta biometric integration",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",