Skip to content

Commit

Permalink
workspace delete message fix in profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Pujan92 committed Nov 22, 2024
1 parent 2166dff commit 53a4d1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/workspace/WorkspaceProfilePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 53a4d1f

Please sign in to comment.