@@ -123,7 +123,7 @@ function SettlementButton({
123123 const hasMultiplePolicies = ! isExpenseReport && activeAdminPolicies . length > 1 ;
124124 const lastPaymentMethodRef = useRef ( lastPaymentMethod ) ;
125125 const formattedPaymentMethods = formatPaymentMethods ( bankAccountList , fundList , styles ) ;
126- const hasIntentToPay = formattedPaymentMethods . length === 1 && ! lastPaymentMethod ;
126+ const hasIntentToPay = ( ( formattedPaymentMethods . length === 1 && isIOUReport ( iouReport ) ) || ! ! policy ?. achAccount ) && ! lastPaymentMethod ;
127127
128128 useEffect ( ( ) => {
129129 if ( isLoadingLastPaymentMethod ) {
@@ -262,7 +262,7 @@ function SettlementButton({
262262 if ( personalBankAccountList . length && canUsePersonalBankAccount ) {
263263 buttonOptions . push ( {
264264 text : translate ( 'iou.settleWallet' , { formattedAmount : '' } ) ,
265- value : CONST . PAYMENT_METHODS . BUSINESS_BANK_ACCOUNT ,
265+ value : CONST . PAYMENT_METHODS . PERSONAL_BANK_ACCOUNT ,
266266 icon : Expensicons . Wallet ,
267267 } ) ;
268268 } else if ( canUsePersonalBankAccount ) {
@@ -293,7 +293,7 @@ function SettlementButton({
293293 activeAdminPolicies . forEach ( ( activePolicy ) => {
294294 const policyName = activePolicy . name ;
295295 buttonOptions . push ( {
296- text : translate ( 'iou.payWithPolicy' , { policyName : truncate ( policyName , { length : 20 } ) , formattedAmount : '' } ) ,
296+ text : translate ( 'iou.payWithPolicy' , { policyName : truncate ( policyName , { length : CONST . ADDITIONAL_ALLOWED_CHARACTERS } ) , formattedAmount : '' } ) ,
297297 icon : Expensicons . Building ,
298298 value : activePolicy . id ,
299299 shouldUpdateSelectedIndex : false ,
@@ -535,7 +535,7 @@ function SettlementButton({
535535 } ;
536536
537537 const customText = getCustomText ( ) ;
538- const secondaryText = getSecondaryText ( ) ;
538+ const secondaryText = truncate ( getSecondaryText ( ) , { length : CONST . FORM_CHARACTER_LIMIT } ) ;
539539
540540 const defaultSelectedIndex = paymentButtonOptions . findIndex ( ( paymentOption ) => {
541541 if ( lastPaymentMethod === CONST . IOU . PAYMENT_TYPE . ELSEWHERE ) {
0 commit comments