Skip to content
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

Fix/remove cart customer check exception #1998

Closed

Conversation

AidasK
Copy link
Contributor

@AidasK AidasK commented Oct 22, 2024

If anonymous customer creates a cart and then tries to login it it throws an exception and page crashes. From database perspective customer can have multiple users so this check should not be performed at all.

Copy link

vercel bot commented Oct 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lunar-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 22, 2024 5:31am

@glennjacobs
Copy link
Contributor

If a user logs in, Lunar assumes they are associated to a customer and if not throws an exception because a user must belong to a customer.

We don't support users placing orders without being associated to a customer.

I'm going to close this issue, but if you think this is wrong or think it could be improved, please let me know.

@glennjacobs glennjacobs closed this Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants