From 53a4d1fe465a23a9e299b7db448bf0ea7fc858b7 Mon Sep 17 00:00:00 2001 From: Pujan Date: Fri, 22 Nov 2024 17:25:34 +0530 Subject: [PATCH] workspace delete message fix in profile --- src/pages/workspace/WorkspaceProfilePage.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/workspace/WorkspaceProfilePage.tsx b/src/pages/workspace/WorkspaceProfilePage.tsx index 979df0099d82..482d66846e66 100644 --- a/src/pages/workspace/WorkspaceProfilePage.tsx +++ b/src/pages/workspace/WorkspaceProfilePage.tsx @@ -61,7 +61,9 @@ function WorkspaceProfilePage({policyDraft, policy: policyProp, route}: Workspac const workspaceAccountID = PolicyUtils.getWorkspaceAccountID(policy?.id ?? '-1'); const [cardFeeds] = useOnyx(`${ONYXKEYS.COLLECTION.SHARED_NVP_PRIVATE_DOMAIN_MEMBER}${workspaceAccountID}`); const [cardsList] = useOnyx(`${ONYXKEYS.COLLECTION.WORKSPACE_CARDS_LIST}${workspaceAccountID}_${CONST.EXPENSIFY_CARD.BANK}`); - const hasCardFeedOrExpensifyCard = !isEmptyObject(cardFeeds) || !isEmptyObject(cardsList); + const hasCardFeedOrExpensifyCard = + // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing + !isEmptyObject(cardFeeds) || !isEmptyObject(cardsList) || ((policy?.areExpensifyCardsEnabled || policy?.areCompanyCardsEnabled) && policy?.workspaceAccountID); const [street1, street2] = (policy?.address?.addressStreet ?? '').split('\n'); const formattedAddress =