@arcblock/ux 2.9.7 → 2.9.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,7 +39,7 @@ export default function SessionBlocklet({
39
39
  const onTogglePopper = useMemoizedFn((value = !currentState.open) => {
40
40
  currentState.open = value;
41
41
  });
42
- if (sessionMenuList.length === 0) {
42
+ if (sessionMenuList.length === 0 || !session?.user) {
43
43
  return null;
44
44
  }
45
45
  return /*#__PURE__*/_jsxs(_Fragment, {
@@ -52,7 +52,7 @@ function SessionBlocklet(_ref) {
52
52
  let value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !currentState.open;
53
53
  currentState.open = value;
54
54
  });
55
- if (sessionMenuList.length === 0) {
55
+ if (sessionMenuList.length === 0 || !(session !== null && session !== void 0 && session.user)) {
56
56
  return null;
57
57
  }
58
58
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/ux",
3
- "version": "2.9.7",
3
+ "version": "2.9.8",
4
4
  "description": "Common used react components for arcblock products",
5
5
  "keywords": [
6
6
  "react",
@@ -340,11 +340,11 @@
340
340
  "peerDependencies": {
341
341
  "react": ">=18.1.0"
342
342
  },
343
- "gitHead": "362c78d98c51f7f4297f019cf2a01c2dae919870",
343
+ "gitHead": "8241dd27ee0de2332133aee2316c61bb792dad79",
344
344
  "dependencies": {
345
345
  "@arcblock/did-motif": "^1.1.13",
346
- "@arcblock/icons": "^2.9.7",
347
- "@arcblock/react-hooks": "^2.9.7",
346
+ "@arcblock/icons": "^2.9.8",
347
+ "@arcblock/react-hooks": "^2.9.8",
348
348
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
349
349
  "@emotion/react": "^11.10.4",
350
350
  "@emotion/styled": "^11.10.4",
@@ -48,7 +48,7 @@ export default function SessionBlocklet({ session, locale, size }) {
48
48
  currentState.open = value;
49
49
  });
50
50
 
51
- if (sessionMenuList.length === 0) {
51
+ if (sessionMenuList.length === 0 || !session?.user) {
52
52
  return null;
53
53
  }
54
54