@jetthai/cuora 1.0.60 → 1.0.61

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.61](https://github.com/jetthai/cuora-module/compare/v1.0.60...v1.0.61) (2021-12-22)
6
+
5
7
  ### [1.0.60](https://github.com/jetthai/cuora-module/compare/v1.0.59...v1.0.60) (2021-12-20)
6
8
 
7
9
  ### [1.0.59](https://github.com/jetthai/cuora-module/compare/v1.0.58...v1.0.59) (2021-12-17)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetthai/cuora",
3
- "version": "1.0.60",
3
+ "version": "1.0.61",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -56,6 +56,7 @@ export default function (request) {
56
56
  id: 'inbox',
57
57
  initial: 'loading',
58
58
  context: {
59
+ isRewardListEnable: true,
59
60
  tabs: [],
60
61
  currentTab: null,
61
62
  inbox: {},
@@ -222,8 +223,8 @@ export default function (request) {
222
223
  return tabs
223
224
  },
224
225
  fetchMessages: async (context, event) => {
225
- const { currentTab, inbox } = JSON.parse(JSON.stringify(context))
226
- if (currentTab === 'REWARD') {
226
+ const { isRewardListEnable, currentTab, inbox } = JSON.parse(JSON.stringify(context))
227
+ if (isRewardListEnable && currentTab === 'REWARD') {
227
228
  const { data } = await request.send(activity.getRewardList({ count: 30, appSecret }))
228
229
  inbox[currentTab] = { data, page: 0, totalPage: 1 }
229
230
  } else {