Skip to content

Commit

Permalink
add policy domain name util function
Browse files Browse the repository at this point in the history
  • Loading branch information
narefyev91 committed Oct 24, 2024
1 parent 77cec75 commit eb17f40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libs/actions/getCompanyCardBankConnection/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {getApiRoot} from '@libs/ApiUtils';
import getPolicyDomainName from '@libs/getPolicyDomainName';
import * as NetworkStore from '@libs/Network/NetworkStore';
import CONST from '@src/CONST';

Expand All @@ -20,7 +21,7 @@ export default function getCompanyCardBankConnection(policyID?: string, bankName
const params: CompanyCardBankConnection = {
authToken: authToken ?? '',
isNewDot: 'true',
domainName: `expensify-policy${policyID}.exfy`,
domainName: getPolicyDomainName(policyID),
isCorporate: 'true',
scrapeMinDate: scrapeMinDate ?? '',
};
Expand Down
3 changes: 3 additions & 0 deletions src/libs/getPolicyDomainName.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function getPolicyDomainName(policyID: string): string {
return `expensify-policy${policyID}.exfy`;
}

0 comments on commit eb17f40

Please sign in to comment.