@jetthai/cuora 1.1.463-dev.1 → 1.1.463-dev.2

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,13 @@
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.1.463-dev.2](https://github.com/jetthai/cuora-module/compare/v1.1.463-dev.1...v1.1.463-dev.2) (2026-08-16)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **deposit:** 切換存款活動不再重設使用者已選的通道 ([b9c1de2](https://github.com/jetthai/cuora-module/commit/b9c1de2f3665c56f52d7b074e892837e836d02fa))
11
+
5
12
  ### [1.1.463-dev.1](https://github.com/jetthai/cuora-module/compare/v1.1.463-dev.0...v1.1.463-dev.1) (2026-08-13)
6
13
 
7
14
  ### [1.1.463-dev.0](https://github.com/jetthai/cuora-module/compare/v1.1.463...v1.1.463-dev.0) (2026-08-13)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.1.463-dev.1",
3
+ "version": "1.1.463-dev.2",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -109,14 +109,11 @@ export default function (request, context) {
109
109
  }
110
110
  }),
111
111
  setPromotion: assign((context, event) => {
112
- const promotion = event.data
113
- const loadcards = context.loadcards
114
- const selectedLoadcard = loadcards[0]
112
+ // 通道清單不隨活動改變(loadcards 由 setInitData 從 paymentDetail 產生),
113
+ // 因此切換活動只清計算結果、保留使用者已選的通道;重設成 loadcards[0] 會讓
114
+ // 使用者選的通道被打回第一個,且重算的是錯誤通道的獎金
115
115
  return {
116
- promotion,
117
- loadcards,
118
- selectedLoadcard,
119
- options: selectedLoadcard?.optional,
116
+ promotion: event.data,
120
117
  calculation: null,
121
118
  }
122
119
  }),
@@ -121,14 +121,11 @@ export default function (request, context) {
121
121
  }
122
122
  }),
123
123
  setPromotion: assign((context, event) => {
124
- const promotion = event.data
125
- const qrcodes = context.qrcodes
126
- const selectedQrcode = qrcodes[0]
124
+ // 通道清單不隨活動改變(qrcodes 由 setInitData 從 paymentDetail 產生),
125
+ // 因此切換活動只清計算結果、保留使用者已選的通道;重設成 qrcodes[0] 會讓
126
+ // 使用者選的通道被打回第一個,且重算的是錯誤通道的獎金
127
127
  return {
128
- promotion,
129
- qrcodes,
130
- selectedQrcode,
131
- options: selectedQrcode?.optional,
128
+ promotion: event.data,
132
129
  calculation: null,
133
130
  }
134
131
  }),