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

SaleContext does not clear searched cards on finalizeSale #33

Open
jaikamat opened this issue Jun 18, 2020 · 0 comments
Open

SaleContext does not clear searched cards on finalizeSale #33

jaikamat opened this issue Jun 18, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jaikamat
Copy link
Owner

When a user clicks 'Finalize Sale' and then 'Yes', the searched-cards (on the left) are not cleared and their inventory values not updated, which may lead to edge cases when the same card is sold back-to-back. Users choose the incorrect quantity to sell, and thus are unable to fulfill an order in its entirety.

Clear the searched-cards by integrating them into the SaleContext emptying the array on sale submission.

@jaikamat jaikamat added the bug Something isn't working label Jun 18, 2020
@jaikamat jaikamat self-assigned this Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant