File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
packages/donate-button-v4/src/components/widget
components/PaymentProcess/PaymentMethodSelect Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -45,11 +45,8 @@ const usePaymentMethods = () => {
4545 ( ) =>
4646 methods
4747 . filter ( ( method ) => {
48- // There is a bug where instead of being a proper array of disabled methods,
49- // it comes as an array of length 1 with a comma-separated string inside
5048 if (
51- nonprofit ?. metadata ?. disabledPaymentFlowOptions ?. length === 1 &&
52- nonprofit ?. metadata ?. disabledPaymentFlowOptions [ 0 ] ?. includes ( method )
49+ nonprofit ?. metadata ?. disabledPaymentFlowOptions ?. includes ( method )
5350 ) {
5451 return false ;
5552 }
Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ export interface Nonprofit {
1818 nteeCode : string | null ;
1919 metadata ?: {
2020 customTaxDeductible ?: string ;
21- // Note that multiple payment methods can be disabled, but for some reason it arrives
22- // as an array of length 1 eg ["card,paypal"] from the API, so we type it as such here
2321 disabledPaymentFlowOptions ?: string [ ] ;
2422 disablePrivateNotes ?: boolean ;
2523 granteeName ?: string ;
You can’t perform that action at this time.
0 commit comments