File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed
packages/blocks/checkout/checkout-billing-payment/src/frontend Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @o2s/blocks.checkout-billing-payment ' : patch
3+ ---
4+
5+ removed incorrect condition that prevented showing payment methods if there was no specified region id
Original file line number Diff line number Diff line change @@ -79,16 +79,13 @@ export const CheckoutBillingPaymentPure: React.FC<Readonly<CheckoutBillingPaymen
7979 } ) ;
8080 }
8181 setCartPromotions ( cart . promotions ) ;
82- if ( cart . regionId ) {
83- const providers = await sdk . payments . getProviders (
84- { regionId : cart . regionId } ,
85- { 'x-locale' : locale } ,
86- accessToken ,
87- ) ;
88- setPaymentProviders ( providers . data ?? [ ] ) ;
89- } else {
90- setPaymentProviders ( [ ] ) ;
91- }
82+ const providers = await sdk . payments . getProviders (
83+ { regionId : cart . regionId } ,
84+ { 'x-locale' : locale } ,
85+ accessToken ,
86+ ) ;
87+ setPaymentProviders ( providers . data ?? [ ] ) ;
88+
9289 if ( cart . paymentMethod ) {
9390 setInitialFormValues ( { paymentMethod : cart . paymentMethod . id } ) ;
9491 }
You can’t perform that action at this time.
0 commit comments