@pega/custom-dx-components 0.25.34 → 0.25.35

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/custom-dx-components",
3
- "version": "0.25.34",
3
+ "version": "0.25.35",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -1,4 +1,3 @@
1
- /* eslint-disable react-hooks/rules-of-hooks */
2
1
  import React from 'react';
3
2
  import { useEffect, useState } from 'react';
4
3
  import { Avatar as CosmosAvatar } from '@pega/cosmos-react-core';
@@ -107,7 +107,7 @@
107
107
  "@babel/preset-react": "^7.27.1",
108
108
  "@babel/preset-typescript": "^7.27.1",
109
109
  "@pega/configs": "^0.16.3",
110
- "@pega/custom-dx-components": "~0.25.34",
110
+ "@pega/custom-dx-components": "~0.25.35",
111
111
  "@pega/pcore-pconnect-typedefs": "^4.1.0-alpha.1",
112
112
  "@storybook/addon-actions": "^8.6.12",
113
113
  "@storybook/addon-essentials": "^8.6.12",
package/src/util.js CHANGED
@@ -1677,9 +1677,7 @@ if (showDebug) addDebugLog("getC11NB2STokenAndStaticServer", "", "");
1677
1677
  if (OAuthData) {
1678
1678
  const { C11NB2S, appStaticContentServer, access_token } = JSON.parse(OAuthData)
1679
1679
 
1680
- if (C11NB2S) {
1681
- return ({ C11NB2S, appStaticContentServer, access_token});
1682
- }
1680
+ return ({ C11NB2S, appStaticContentServer, access_token});
1683
1681
 
1684
1682
  }
1685
1683
  return ({});
@@ -1,4 +1,3 @@
1
- /* eslint-disable react-hooks/rules-of-hooks */
2
1
  import React from 'react';
3
2
  import { useEffect, useState } from 'react';
4
3
  import { Avatar as CosmosAvatar } from '@pega/cosmos-react-core';