From 382cd5aa706c95c3325005f77460c341d4957d40 Mon Sep 17 00:00:00 2001 From: Vit Horacek Date: Fri, 24 Nov 2023 16:25:35 +0000 Subject: [PATCH] Only show the VBBA payment option for expense reports --- src/components/SettlementButton.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/SettlementButton.js b/src/components/SettlementButton.js index 8cf9655d34dc..c7342b0d36ac 100644 --- a/src/components/SettlementButton.js +++ b/src/components/SettlementButton.js @@ -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