Skip to content

Commit 8b07098

Browse files
committed
(fix) Disable cancel button in on-prescription-filled modal when a submission is ongoing
1 parent 55bbde3 commit 8b07098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fill-prescription/on-prescription-filled.modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const OnPrescriptionFilledModal: React.FC<OnPrescriptionFilledModalProps> = ({ p
122122
))}
123123
</ModalBody>
124124
<ModalFooter>
125-
<Button kind="secondary" onClick={close}>
125+
<Button disabled={isSubmitting} kind="secondary" onClick={close}>
126126
{t('createOrderWithoutDispensing', 'Create order without dispensing')}
127127
</Button>
128128
<Button

0 commit comments

Comments
 (0)