Skip to content

Commit

Permalink
Merge pull request #31841 from Expensify/vit-onlyShowVBBAForExpenseRe…
Browse files Browse the repository at this point in the history
…ports

[CP Staging] Only show the VBBA payment option for expense reports
  • Loading branch information
luacmartins authored Nov 24, 2023
2 parents 1e4c84b + 382cd5a commit eb5de8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/SettlementButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ function SettlementButton({
if (canUseWallet) {
buttonOptions.push(paymentMethods[CONST.IOU.PAYMENT_TYPE.EXPENSIFY]);
}
buttonOptions.push(paymentMethods[CONST.IOU.PAYMENT_TYPE.VBBA]);
if (isExpenseReport) {
buttonOptions.push(paymentMethods[CONST.IOU.PAYMENT_TYPE.VBBA]);
}
buttonOptions.push(paymentMethods[CONST.IOU.PAYMENT_TYPE.ELSEWHERE]);

// Put the preferred payment method to the front of the array so its shown as default
Expand Down

0 comments on commit eb5de8e

Please sign in to comment.