@@ -15,8 +15,8 @@ import useOnyx from '@hooks/useOnyx';
1515import useThemeStyles from '@hooks/useThemeStyles' ;
1616import { getLastFourDigits } from '@libs/BankAccountUtils' ;
1717import Navigation from '@libs/Navigation/Navigation' ;
18- import * as BankAccounts from '@userActions/BankAccounts' ;
19- import * as PaymentMethods from '@userActions/PaymentMethods' ;
18+ import { openPersonalBankAccountSetupView } from '@userActions/BankAccounts' ;
19+ import { saveWalletTransferAccountTypeAndID } from '@userActions/PaymentMethods' ;
2020import CONST from '@src/CONST' ;
2121import ONYXKEYS from '@src/ONYXKEYS' ;
2222import ROUTES from '@src/ROUTES' ;
@@ -30,7 +30,7 @@ type BankAccountListItem = ListItem & {
3030} ;
3131
3232function ChooseTransferAccountPage ( ) {
33- const [ walletTransfer , walletTransferResult ] = useOnyx ( ONYXKEYS . WALLET_TRANSFER ) ;
33+ const [ walletTransfer , walletTransferResult ] = useOnyx ( ONYXKEYS . WALLET_TRANSFER , { canBeMissing : true } ) ;
3434
3535 const styles = useThemeStyles ( ) ;
3636 const { translate} = useLocalize ( ) ;
@@ -41,7 +41,7 @@ function ChooseTransferAccountPage() {
4141 * @param account of the selected account data
4242 */
4343 const selectAccountAndNavigateBack = ( accountType ?: string , account ?: AccountData ) => {
44- PaymentMethods . saveWalletTransferAccountTypeAndID (
44+ saveWalletTransferAccountTypeAndID (
4545 accountType ?? '' ,
4646 ( accountType === CONST . PAYMENT_METHODS . PERSONAL_BANK_ACCOUNT ? account ?. bankAccountID ?. toString ( ) : account ?. fundID ?. toString ( ) ) ?? '' ,
4747 ) ;
@@ -53,10 +53,10 @@ function ChooseTransferAccountPage() {
5353 Navigation . navigate ( ROUTES . SETTINGS_ADD_DEBIT_CARD ) ;
5454 return ;
5555 }
56- BankAccounts . openPersonalBankAccountSetupView ( ) ;
56+ openPersonalBankAccountSetupView ( { } ) ;
5757 } ;
5858
59- const [ bankAccountsList ] = useOnyx ( ONYXKEYS . BANK_ACCOUNT_LIST ) ;
59+ const [ bankAccountsList ] = useOnyx ( ONYXKEYS . BANK_ACCOUNT_LIST , { canBeMissing : true } ) ;
6060 const selectedAccountID = walletTransfer ?. selectedAccountID ;
6161 const data = useMemo ( ( ) => {
6262 const options = Object . values ( bankAccountsList ?? { } ) . map ( ( bankAccount ) : BankAccountListItem => {
0 commit comments