Skip to content

Commit 1949eb2

Browse files
authored
Correction bug avec tablet (0) qui bloquait dans un if (#34)
1 parent 9bf3df4 commit 1949eb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pill_mate/frontend/src/components/PopUpStock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const PopUpStock: FC<Props> = ({ onClose, mode, medication: medication }) => {
2727

2828
const handleSubmit = (event: FormEvent) => {
2929
event.preventDefault();
30-
if (name && unit && quantity) {
30+
if (name && quantity) {
3131
if (mode === 'Modifier' && medication !== null) {
3232
modifyMedication(medication.id, { name, indication, quantity, unit});
3333
onClose();

0 commit comments

Comments
 (0)