From 9e012b355caa40d26c70ac90cc9fed58f9280ccd Mon Sep 17 00:00:00 2001 From: mohitb35 <44917347+mohitb35@users.noreply.github.com> Date: Tue, 14 Mar 2023 10:36:28 +0530 Subject: [PATCH] feat: adds "transfer" as alias to "offline" method - this is preparation to replace method "offline" with "transfer" --- src/Donations/Components/PaymentsForm.tsx | 3 ++- src/Donations/PaymentMethods/BankTransfer.tsx | 2 +- src/Donations/PaymentMethods/PaymentFunctions.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Donations/Components/PaymentsForm.tsx b/src/Donations/Components/PaymentsForm.tsx index bd76c60f..38e35190 100644 --- a/src/Donations/Components/PaymentsForm.tsx +++ b/src/Donations/Components/PaymentsForm.tsx @@ -366,7 +366,8 @@ function PaymentsForm(): ReactElement { showBankTransfer={ Object.keys(paymentSetup?.gateways).includes("offline") && (frequency === "once" || - paymentSetup?.recurrency.methods?.includes("offline")) + paymentSetup?.recurrency.methods?.includes("offline") || + paymentSetup?.recurrency.methods?.includes("transfer")) } showPaypal={ paypalCurrencies.includes(currency) && diff --git a/src/Donations/PaymentMethods/BankTransfer.tsx b/src/Donations/PaymentMethods/BankTransfer.tsx index 2c4c31b9..aca52f0d 100644 --- a/src/Donations/PaymentMethods/BankTransfer.tsx +++ b/src/Donations/PaymentMethods/BankTransfer.tsx @@ -18,7 +18,7 @@ function BankTransfer({ onSubmitPayment }: Props): ReactElement {