From 9ca2aab58f40bb03542c1b38d671e4a35e475b4b Mon Sep 17 00:00:00 2001 From: "a.bouhuolia" Date: Thu, 26 Jan 2023 22:34:01 +0200 Subject: [PATCH] fix(account-drawer): description placeholder. --- src/containers/Drawers/AccountDrawer/AccountDrawerHeader.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/containers/Drawers/AccountDrawer/AccountDrawerHeader.tsx b/src/containers/Drawers/AccountDrawer/AccountDrawerHeader.tsx index 17ae69a0e..f86440d69 100644 --- a/src/containers/Drawers/AccountDrawer/AccountDrawerHeader.tsx +++ b/src/containers/Drawers/AccountDrawer/AccountDrawerHeader.tsx @@ -1,6 +1,6 @@ // @ts-nocheck import React from 'react'; -import { defaultTo } from 'lodash'; +import { isEmpty } from 'lodash'; import { Icon, @@ -15,6 +15,7 @@ import { useAccountDrawerContext } from './AccountDrawerProvider'; */ export default function AccountDrawerHeader() { const { account } = useAccountDrawerContext(); + return (
@@ -50,7 +51,7 @@ export default function AccountDrawerHeader() { }> - {defaultTo(account.description, '--')} + {!isEmpty(account.description) ? account.description : '--'}