@jetthai/cuora 1.0.30 → 1.0.31

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.0.31](https://github.com/jetthai/cuora-module/compare/v1.0.30...v1.0.31) (2021-10-21)
6
+
5
7
  ### [1.0.30](https://github.com/jetthai/cuora-module/compare/v1.0.29...v1.0.30) (2021-10-20)
6
8
 
7
9
  ### [1.0.29](https://github.com/jetthai/cuora-module/compare/v1.0.28...v1.0.29) (2021-10-20)
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "description": "",
5
- "main": "./dist/index.js",
6
- "module": "dist/index.js",
5
+ "main": "./src/index.js",
7
6
  "scripts": {
8
7
  "build": "webpack",
9
8
  "release": "standard-version && git push --follow-tags origin master && npm publish"
@@ -151,9 +151,17 @@ export default function (request) {
151
151
  return { currentNetwork: event.data }
152
152
  }),
153
153
  setAmount: assign((context, event) => {
154
- return {
155
- currentAmount: event.data,
154
+ const currentAmount = event.data
155
+
156
+ const properties = {
157
+ currentAmount,
158
+ }
159
+
160
+ if (!currentAmount) {
161
+ properties.calculatedResult = null
156
162
  }
163
+
164
+ return properties
157
165
  }),
158
166
  setCalculatedResult: assign((context, event) => {
159
167
  return {