Skip to content

Cart changes during pay() function not displaying #27

@random-facades

Description

@random-facades

When I empty the cart during the pay() function, the cart still appears full.
If I add an item, the cart refreshes and shows that the cart only contains that item.

After looking at the front.js file, I found that the section that handles the '.pay' button doesn't redraw the cart or checkout UI. I forked the original repo and added drawCart() and drawCheckout() to this section and now the UI shows the empty cart after a full payment.

To make things simple, I created the following pull request: #26

With this change to the base repo, this issue should be fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions