-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stale customerGroup in checkoutState #1321
Comments
Any update on this? We build customizations that rely on this data being correct. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
There's an issue with the
customer.customerGroup
data being stale as returned bycheckoutState.data.getCustomer()
.To Reproduce
customer.customerGroup
data will now be stale (the previously logged in user's customer group will still be the value)Expected behavior
The customer group data should be accurate.
Additional context
When the new state is merged into the existing
customer
object, ifcustomerGroup
isundefined
it will leave the previous value there, causing our state to become stale / inaccurate.When Guest customers have a customer group assigned the key gets updated correctly... this is because the
customerGroup
value for those users is defined. The merging of old state into new has no problem in this case.Created the original issue here but have not gotten feedback.
The text was updated successfully, but these errors were encountered: