diff --git a/src/libs/OptionsListUtils.ts b/src/libs/OptionsListUtils.ts index d39f9fd2a04b..32e23a817a9c 100644 --- a/src/libs/OptionsListUtils.ts +++ b/src/libs/OptionsListUtils.ts @@ -2032,7 +2032,7 @@ function getOptions( const shouldShowInvoiceRoom = includeInvoiceRooms && ReportUtils.isInvoiceRoom(reportOption.item) && ReportUtils.isPolicyAdmin(reportOption.policyID ?? '', policies) && !reportOption.isArchivedRoom; - // TODO: Uncomment the following line when the invoices screen is ready + // TODO: Uncomment the following line when the invoices screen is ready - https://github.com/Expensify/App/issues/45175. // && PolicyUtils.canSendInvoiceFromWorkspace(reportOption.policyID); /** diff --git a/src/libs/PolicyUtils.ts b/src/libs/PolicyUtils.ts index d71f667c0064..a43ea9723b38 100644 --- a/src/libs/PolicyUtils.ts +++ b/src/libs/PolicyUtils.ts @@ -507,7 +507,7 @@ function canSendInvoiceFromWorkspace(policyID: string | undefined): boolean { /** Whether the user can send invoice */ function canSendInvoice(policies: OnyxCollection | null): boolean { return getActiveAdminWorkspaces(policies).length > 0; - // TODO: Uncomment the following line when the invoices screen is ready + // TODO: Uncomment the following line when the invoices screen is ready - https://github.com/Expensify/App/issues/45175. // return getActiveAdminWorkspaces(policies).some((policy) => canSendInvoiceFromWorkspace(policy.id)); } diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index f2d7bc84b204..b05b615156ee 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -6086,7 +6086,7 @@ function getMoneyRequestOptions(report: OnyxEntry, policy: OnyxEntry { /** * Returns a primary policy for the user */ -// TODO: Use getInvoicePrimaryWorkspace when the invoices screen is ready +// TODO: Use getInvoicePrimaryWorkspace when the invoices screen is ready - https://github.com/Expensify/App/issues/45175. function getPrimaryPolicy(activePolicyID?: OnyxEntry): Policy | undefined { const activeAdminWorkspaces = PolicyUtils.getActiveAdminWorkspaces(allPolicies); const primaryPolicy: Policy | null | undefined = allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${activePolicyID ?? '-1'}`]; @@ -2986,7 +2986,7 @@ function enablePolicyInvoices(policyID: string, enabled: boolean) { API.write(WRITE_COMMANDS.ENABLE_POLICY_INVOICES, parameters, onyxData); - // TODO: Uncomment the following line when the invoices screen is ready + // TODO: Uncomment the following line when the invoices screen is ready - https://github.com/Expensify/App/issues/45175. // if (enabled && getIsNarrowLayout()) { // navigateWhenEnableFeature(policyID); // } diff --git a/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx b/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx index 103b9a842c63..cf47869e0052 100644 --- a/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx +++ b/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx @@ -248,7 +248,7 @@ function MoneyRequestParticipantsSelector({participants = CONST.EMPTY_ARRAY, onF ]; if (iouType === CONST.IOU.TYPE.INVOICE) { - // TODO: Use getInvoicePrimaryWorkspace when the invoices screen is ready + // TODO: Use getInvoicePrimaryWorkspace when the invoices screen is ready - https://github.com/Expensify/App/issues/45175. const policyID = option.item && ReportUtils.isInvoiceRoom(option.item) ? option.policyID : Policy.getPrimaryPolicy(activePolicyID)?.id; newParticipants.push({ policyID, diff --git a/src/pages/iou/request/step/IOURequestStepSendFrom.tsx b/src/pages/iou/request/step/IOURequestStepSendFrom.tsx index 7e46deba41cb..4c22b7f37e33 100644 --- a/src/pages/iou/request/step/IOURequestStepSendFrom.tsx +++ b/src/pages/iou/request/step/IOURequestStepSendFrom.tsx @@ -42,7 +42,7 @@ function IOURequestStepSendFrom({route, transaction, allPolicies}: IOURequestSte const workspaceOptions: WorkspaceListItem[] = useMemo(() => { const availableWorkspaces = PolicyUtils.getActiveAdminWorkspaces(allPolicies); - // TODO: Uncomment the following line when the invoices screen is ready + // TODO: Uncomment the following line when the invoices screen is ready - https://github.com/Expensify/App/issues/45175. // .filter((policy) => PolicyUtils.canSendInvoiceFromWorkspace(policy.id)); return availableWorkspaces