Skip to content

Commit

Permalink
chore: modify Checkout button copy (#1702)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAlec authored Dec 9, 2024
1 parent ecaa62f commit 5fe64c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/checkout/components/CheckoutButton.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('CheckoutButton', () => {
it('should render Coinbase branded button when coinbaseBranded prop is true', () => {
render(<CheckoutButton coinbaseBranded={true} />);
const button = screen.getByRole('button');
expect(button.textContent).toBe('Pay with Crypto');
expect(button.textContent).toBe('Pay');
expect(screen.getByTestId('icon')).toBeDefined();
});

Expand Down
2 changes: 1 addition & 1 deletion src/checkout/components/CheckoutButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function CheckoutButton({
}: CheckoutButtonReact) {
if (coinbaseBranded) {
icon = 'coinbasePay';
text = 'Pay with Crypto';
text = 'Pay';
}
const { lifecycleStatus, onSubmit } = useCheckoutContext();
const iconSvg = useIcon({ icon });
Expand Down

0 comments on commit 5fe64c8

Please sign in to comment.