Skip to content

Duplicate shipments created due to multiple clicks on "Ready for Pickup" button #692

@AjinkyaM1

Description

@AjinkyaM1

During investigation in the UAT instance, we observed that duplicate shipments are created when the Ready for Pickup button is clicked multiple times from the order details page.

  • After clicking the button, there is a slight delay for the packing slip to generate.
  • The timestamps of the duplicate shipments differ by only milliseconds, indicating that the second click happened almost immediately after the first.
  • If the app were slow, the timestamps would have a larger difference.

Root Cause

The issue occurs because the store team clicks the Ready for Pickup button twice in very quick succession.

Recommendation

  1. Ensure the Ready for Pickup button is clicked only once per order to avoid duplicate shipments.
  2. Implement a safeguard in the app to prevent multiple shipments being created from rapid multiple clicks. Possible solutions:
    • Disable the button immediately after the first click until the shipment creation is confirmed.
    • Show a loader to indicate the action is in progress.

Jam: https://jam.dev/c/66e93564-3487-43bd-b95f-dc0821771861

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

📋 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions