diff --git a/.changeset/real-garlics-battle.md b/.changeset/real-garlics-battle.md new file mode 100644 index 0000000000..a6e44b02a5 --- /dev/null +++ b/.changeset/real-garlics-battle.md @@ -0,0 +1,5 @@ +--- +'@graphcommerce/magento-cart-payment-method': patch +--- + +Remove the selected payment method title from the Place order button so that the text always fits diff --git a/packages/magento-cart-payment-method/PaymentMethodButton/PaymentMethodButton.tsx b/packages/magento-cart-payment-method/PaymentMethodButton/PaymentMethodButton.tsx index 755cef1767..8a3021a82f 100644 --- a/packages/magento-cart-payment-method/PaymentMethodButton/PaymentMethodButton.tsx +++ b/packages/magento-cart-payment-method/PaymentMethodButton/PaymentMethodButton.tsx @@ -29,12 +29,6 @@ function PaymentMethodButtonRenderer( loading={buttonState.isSubmitting || (buttonState.isSubmitSuccessful && !error)} > {buttonProps.children} - {selectedMethod?.title && ( - <> - {' '} - ({selectedMethod?.title}) - - )} ) : (