when medicine is replaced the is status is displayed twice, should display only once

Issue Summary

When a medicine is replaced in the Verify Medicines page, the replacement status/details are displayed twice instead of once.


Problem Statement

In the Verify Medicines page:

  • When a medicine is replaced, the replacement details (such as type and quantity) are shown twice.
  • This duplication creates confusion and reduces clarity for users.

Impact:

  • Poor user experience due to duplicate information.
  • Misinterpretation of medicine replacement details.
  • UI looks inconsistent and unclean.

Proposed Solution

  • Identify and remove the duplicate JSX rendering block responsible for repeated data.
  • Ensure replacement medicine details are displayed only once in a clean, structured format.
  • Validate that no duplicate rendering occurs across all replacement scenarios.

Test-Driven Development

Acceptance Criteria (Given-When-Then)

Scenario 1: Replacement details displayed only once

Given the user is on the Verify Medicines page
 And a medicine has been replaced
When the replacement details are displayed
Then the medicine type and quantity should appear only once
Edited by Rajuldev Vandana