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

(cherry picked from commit eb5de8e)
  • Loading branch information
luacmartins authored and OSBotify committed Nov 24, 2023
1 parent 20bfe0d commit 627fe4f
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 @@ -163,7 +163,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 627fe4f

Please sign in to comment.