Skip to content

Commit eb17f40

Browse files
committed
add policy domain name util function
1 parent 77cec75 commit eb17f40

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/libs/actions/getCompanyCardBankConnection/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {getApiRoot} from '@libs/ApiUtils';
2+
import getPolicyDomainName from '@libs/getPolicyDomainName';
23
import * as NetworkStore from '@libs/Network/NetworkStore';
34
import CONST from '@src/CONST';
45

@@ -20,7 +21,7 @@ export default function getCompanyCardBankConnection(policyID?: string, bankName
2021
const params: CompanyCardBankConnection = {
2122
authToken: authToken ?? '',
2223
isNewDot: 'true',
23-
domainName: `expensify-policy${policyID}.exfy`,
24+
domainName: getPolicyDomainName(policyID),
2425
isCorporate: 'true',
2526
scrapeMinDate: scrapeMinDate ?? '',
2627
};

src/libs/getPolicyDomainName.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default function getPolicyDomainName(policyID: string): string {
2+
return `expensify-policy${policyID}.exfy`;
3+
}

0 commit comments

Comments
 (0)