|
| 1 | +import type {LocaleContextProps} from '@components/LocaleContextProvider'; |
| 2 | + |
1 | 3 | import type {CurrencyListActionsContextType} from '@hooks/useCurrencyList'; |
2 | 4 |
|
3 | 5 | import DateUtils from '@libs/DateUtils'; |
4 | 6 | import {getMicroSecondOnyxErrorObject, getMicroSecondOnyxErrorWithTranslationKey} from '@libs/ErrorUtils'; |
5 | 7 | import {isLocalFile} from '@libs/fileDownload/FileUtils'; |
6 | 8 | import type {MinimalTransaction} from '@libs/Formula'; |
7 | 9 | import {updateIOUOwnerAndTotal} from '@libs/IOUUtils'; |
8 | | -import {formatPhoneNumber} from '@libs/LocalePhoneNumber'; |
9 | 10 | import {translateLocal} from '@libs/Localize'; |
10 | 11 | import {buildOptimisticNextStep} from '@libs/NextStepUtils'; |
11 | 12 | import {rand64} from '@libs/NumberUtils'; |
@@ -196,6 +197,7 @@ type RequestMoneyInformation = { |
196 | 197 | shouldDeferAutoSubmit?: boolean; |
197 | 198 | delegateAccountID: number | undefined; |
198 | 199 | isTrackIntentUser: boolean | undefined; |
| 200 | + formatPhoneNumber: LocaleContextProps['formatPhoneNumber']; |
199 | 201 | getCurrencyDecimals: CurrencyListActionsContextType['getCurrencyDecimals']; |
200 | 202 | }; |
201 | 203 |
|
@@ -232,6 +234,7 @@ type MoneyRequestInformationParams = { |
232 | 234 | personalDetails: OnyxEntry<OnyxTypes.PersonalDetailsList>; |
233 | 235 | isTrackIntentUser: boolean | undefined; |
234 | 236 | delegateAccountID: number | undefined; |
| 237 | + formatPhoneNumber: LocaleContextProps['formatPhoneNumber']; |
235 | 238 | getCurrencyDecimals: CurrencyListActionsContextType['getCurrencyDecimals']; |
236 | 239 | }; |
237 | 240 |
|
@@ -1285,6 +1288,7 @@ function getMoneyRequestInformation(moneyRequestInformation: MoneyRequestInforma |
1285 | 1288 | betas, |
1286 | 1289 | delegateAccountID, |
1287 | 1290 | isTrackIntentUser, |
| 1291 | + formatPhoneNumber, |
1288 | 1292 | getCurrencyDecimals, |
1289 | 1293 | } = moneyRequestInformation; |
1290 | 1294 | const {payeeAccountID = currentUserAccountIDParam, payeeEmail = currentUserEmailParam, participant} = participantParams; |
|
0 commit comments