medusajs / medusa

The world's most flexible commerce platform.
https://medusajs.com
MIT License
26.25k stars 2.67k forks source link

Unable to change email address of logged in user during checkout #9849

Open devcshort opened 1 month ago

devcshort commented 1 month ago

Bug report

Describe the bug

When a user is logged in and tries to go through the checkout flow, they will be forced in to using their account specific email regardless of what they type in to the email address input.

System information

Medusa version (including plugins): 1.20.10 Node.js version: 20.12.2 Database: Postgres 16.3 Operating system: macOS Sonoma 14.5

Steps to reproduce the behavior

  1. Log in to an account.
  2. Add an item to your cart.
  3. Go to the checkout page.
  4. You should see your account email in the input. Change it to something different.
  5. Click Continue to delivery
  6. Check the address information for your email. It should have reverted to your account email instead of what was typed in.

Expected behavior

When a user types in an email address, that email should be used regardless of what is tied to their account.

devcshort commented 1 month ago

Fixed by https://github.com/medusajs/medusa/pull/9850