Skip to content

Commit

Permalink
(fix) O3-3557: Ensure selectable batches have sufficient quantities f…
Browse files Browse the repository at this point in the history
…or dispensing (#109)
  • Loading branch information
mogoodrich authored Jul 18, 2024
1 parent fb6e5da commit c72448f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/forms/medication-dispense-review.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,7 @@ const MedicationDispenseReview: React.FC<MedicationDispenseReviewProps> = ({
}
min={0}
max={config.dispenseBehavior.restrictTotalQuantityDispensed ? quantityRemaining : undefined}
value={
quantityRemaining <= medicationDispense.quantity.value
? quantityRemaining
: medicationDispense.quantity.value
}
value={medicationDispense.quantity.value}
onChange={(e) => {
updateMedicationDispense({
...medicationDispense,
Expand Down

0 comments on commit c72448f

Please sign in to comment.