Skip to content

Commit

Permalink
(feat) O3-3259 Add ability to deduct stock items while performing dis…
Browse files Browse the repository at this point in the history
…pensing medication (#107)

(fix bug with stock dispense conditional)
  • Loading branch information
mogoodrich committed May 28, 2024
1 parent 347959b commit b9a32f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/forms/dispense-form.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const DispenseForm: React.FC<DispenseFormProps> = ({
})
.then((response) => {
const { status } = response;
if ((config.enableStockDispense && status === 201) || status === 200) {
if (config.enableStockDispense && (status === 201 || status === 200)) {
const stockDispenseRequestPayload = createStockDispenseRequestPayload(
inventoryItem,
patientUuid,
Expand Down

0 comments on commit b9a32f6

Please sign in to comment.