Skip to content

Commit

Permalink
delete hasWorkspaceWithInvoices function definition
Browse files Browse the repository at this point in the history
  • Loading branch information
etCoderDysto committed Jan 9, 2025
1 parent 59e702b commit dc1b5be
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/libs/PolicyUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -687,11 +687,6 @@ function canSendInvoice(policies: OnyxCollection<Policy> | null, currentUserLogi
return getActiveAdminWorkspaces(policies, currentUserLogin).some((policy) => canSendInvoiceFromWorkspace(policy.id));
}

function hasWorkspaceWithInvoices(currentUserLogin: string | undefined): boolean {
const activePolicies = getActivePolicies(allPolicies, currentUserLogin);
return activePolicies.some((policy) => shouldShowPolicy(policy, NetworkStore.isOffline(), currentUserLogin) && policy.areInvoicesEnabled);
}

function hasDependentTags(policy: OnyxEntry<Policy>, policyTagList: OnyxEntry<PolicyTagLists>) {
if (!policy?.hasMultipleTagLists) {
return false;
Expand Down Expand Up @@ -1249,7 +1244,6 @@ export {
canSendInvoiceFromWorkspace,
canSubmitPerDiemExpenseFromWorkspace,
canSendInvoice,
hasWorkspaceWithInvoices,
hasDependentTags,
hasVBBA,
getXeroTenants,
Expand Down

0 comments on commit dc1b5be

Please sign in to comment.