Skip to content

Commit

Permalink
fix: type validation
Browse files Browse the repository at this point in the history
  • Loading branch information
GaelFerrand committed Feb 28, 2025
1 parent da721fe commit dfa5eb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion back/src/forms/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@ export const quantityRefusedNotRequired = (
);

export const quantityRefused = (
quantityReceivedFieldName = "quantityReceived"
quantityReceivedFieldName:
| "temporaryStorageTemporaryStorerQuantityReceived"
| "quantityReceived" = "quantityReceived"
) =>
quantityRefusedNotRequired(quantityReceivedFieldName).test(
"quantity-is-required",
Expand Down

0 comments on commit dfa5eb8

Please sign in to comment.