react-native-mesmart 1.0.5 → 1.0.6

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.
@@ -93,11 +93,10 @@ class StoneImpl(
93
93
  }
94
94
  )
95
95
 
96
- transaction?.let {
96
+ if (paymentProvider != null && transaction != null)
97
97
  promise.resolve(
98
- TransactionObjectMapper.toWritableMap(it)
98
+ TransactionObjectMapper.toWritableMap(transaction!!)
99
99
  )
100
- }
101
100
 
102
101
  paymentProvider = null
103
102
  transaction = null
@@ -127,11 +126,10 @@ class StoneImpl(
127
126
  }
128
127
  )
129
128
 
130
- transaction?.let {
129
+ if (paymentProvider != null && transaction != null)
131
130
  promise.resolve(
132
- TransactionObjectMapper.toWritableMap(it)
131
+ TransactionObjectMapper.toWritableMap(transaction!!)
133
132
  )
134
- }
135
133
 
136
134
  paymentProvider = null
137
135
  transaction = null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-mesmart",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Sunmi P2 utilities and Plugpag wrapper for React Native",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",