@jetthai/cuora 1.0.165 → 1.0.167
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 +4 -0
- package/package.json +1 -1
- package/src/machine/auth.js +2 -0
- package/src/machine/deposit/direct.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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.167](https://github.com/jetthai/cuora-module/compare/v1.0.166...v1.0.167) (2022-09-07)
|
|
6
|
+
|
|
7
|
+
### [1.0.166](https://github.com/jetthai/cuora-module/compare/v1.0.165...v1.0.166) (2022-09-07)
|
|
8
|
+
|
|
5
9
|
### [1.0.165](https://github.com/jetthai/cuora-module/compare/v1.0.164...v1.0.165) (2022-09-02)
|
|
6
10
|
|
|
7
11
|
### [1.0.164](https://github.com/jetthai/cuora-module/compare/v1.0.163...v1.0.164) (2022-08-26)
|
package/package.json
CHANGED
package/src/machine/auth.js
CHANGED
|
@@ -262,11 +262,13 @@ export default function (request) {
|
|
|
262
262
|
}),
|
|
263
263
|
setAccount: assign((context, event) => {
|
|
264
264
|
if (context.loginData.phone) {
|
|
265
|
+
cookies.remove(accountEmailKey)
|
|
265
266
|
cookies.set(accountPhoneKey, `0${context.loginData.phone}`, {
|
|
266
267
|
path: '/',
|
|
267
268
|
maxAge: 60 * 60 * 24 * 7,
|
|
268
269
|
})
|
|
269
270
|
} else if (context.loginData.email) {
|
|
271
|
+
cookies.remove(accountPhoneKey)
|
|
270
272
|
cookies.set(accountEmailKey, context.loginData.email, {
|
|
271
273
|
path: '/',
|
|
272
274
|
maxAge: 60 * 60 * 24 * 7,
|
|
@@ -181,7 +181,7 @@ export default function (request) {
|
|
|
181
181
|
},
|
|
182
182
|
fetchBanksList: async (context, event) => {
|
|
183
183
|
const { paymentDetails } = context
|
|
184
|
-
const method = paymentDetails.find((item) => item.category === '
|
|
184
|
+
const method = paymentDetails.find((item) => item.category === 'direct')?.method
|
|
185
185
|
return await request.send(payment.getBankList(method))
|
|
186
186
|
},
|
|
187
187
|
fetchCalculation: async (context, event) => {
|