gatsby-core-theme 39.0.21 → 39.0.22

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
@@ -1,3 +1,11 @@
1
+ ## [39.0.22](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v39.0.21...v39.0.22) (2024-10-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * check inactive operator ([a214cb9](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/a214cb9bd4f44d26e6bdb9003ff10ecac481a9ad))
7
+ * check inactive operator ([316e08c](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/316e08c386e1000f26af8789ef1ab517e16fa384))
8
+
1
9
  ## [39.0.21](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v39.0.20...v39.0.21) (2024-10-02)
2
10
 
3
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "39.0.21",
3
+ "version": "39.0.22",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable no-useless-return */
2
2
  // eslint-disable-next-line import/prefer-default-export
3
3
  export const checkForInactiveOperatorToplist = (item, status) => {
4
- const shortCode = item && item.items && item.items.length && item.items[0].short_code;
4
+ const shortCode = item && item.items && item.items.length && item.items[0].value;
5
5
  if (item.name === 'top_list' && status === 'active' && shortCode === 'inactive_operator_toplist')
6
6
  return true;
7
7
 
@@ -4,7 +4,7 @@ describe('checkForInactiveOperatorToplist', () => {
4
4
  it('should not return anything if the item is an active toplist with short code inactive_operator_toplist', () => {
5
5
  const item = {
6
6
  name: 'top_list',
7
- items: [{ short_code: 'inactive_operator_toplist' }],
7
+ items: [{ value: 'inactive_operator_toplist' }],
8
8
  };
9
9
  const status = 'active';
10
10
  expect(checkForInactiveOperatorToplist(item, status)).toBe(true);
@@ -13,7 +13,7 @@ describe('checkForInactiveOperatorToplist', () => {
13
13
  it('should return anything if the item is not a toplist', () => {
14
14
  const item = {
15
15
  name: 'not_top_list',
16
- items: [{ short_code: 'inactive_operator_toplist' }],
16
+ items: [{ value: 'inactive_operator_toplist' }],
17
17
  };
18
18
  const status = 'active';
19
19
  expect(checkForInactiveOperatorToplist(item, status)).toBe(false);
@@ -22,16 +22,16 @@ describe('checkForInactiveOperatorToplist', () => {
22
22
  it('should return anything if the item is not active', () => {
23
23
  const item = {
24
24
  name: 'top_list',
25
- items: [{ short_code: 'inactive_operator_toplist' }],
25
+ items: [{ value: 'inactive_operator_toplist' }],
26
26
  };
27
27
  const status = 'inactive';
28
28
  expect(checkForInactiveOperatorToplist(item, status)).toBe(false);
29
29
  });
30
30
 
31
- it('should return anything if the short_code is not inactive_operator_toplist', () => {
31
+ it('should return anything if the value is not inactive_operator_toplist', () => {
32
32
  const item = {
33
33
  name: 'top_list',
34
- items: [{ short_code: 'not_inactive_operator_toplist' }],
34
+ items: [{ value: 'not_inactive_operator_toplist' }],
35
35
  };
36
36
  const status = 'active';
37
37
  expect(checkForInactiveOperatorToplist(item, status)).toBe(false);