Skip to content

Commit

Permalink
Merge pull request #52957 from Pujan92/fix/50671
Browse files Browse the repository at this point in the history
Fix: Workspace - Correct message shown in delete modal while deleting from profile page
  • Loading branch information
mountiny authored Nov 22, 2024
2 parents 50101d8 + 53a4d1f commit 2b31276
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 2b31276

Please sign in to comment.