From fceab26a8309dc24326fae94f4df30562f0ec3c0 Mon Sep 17 00:00:00 2001 From: Maximiliano forlenza Date: Mon, 4 Jul 2022 07:18:05 -0300 Subject: [PATCH] fix(userMenu): fix warning --- package.json | 2 +- src/components/Header/UserMenu/UserMenu.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b16594a..5ab65ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@indec/react-commons", - "version": "5.4.0", + "version": "5.4.1", "description": "Common reactjs components for apps", "private": false, "main": "index.js", diff --git a/src/components/Header/UserMenu/UserMenu.js b/src/components/Header/UserMenu/UserMenu.js index 75c9575..87507de 100644 --- a/src/components/Header/UserMenu/UserMenu.js +++ b/src/components/Header/UserMenu/UserMenu.js @@ -6,7 +6,7 @@ import { } from '@chakra-ui/react'; const UserMenu = ({user, attributes, onLogout}) => ( - + {(user.name && user.surname) && (