Skip to content

Commit

Permalink
Merge pull request #25 from lksnjw/editing-the-final-one
Browse files Browse the repository at this point in the history
done
  • Loading branch information
lksnjw authored Oct 14, 2024
2 parents b7cd9d8 + 36e06be commit a0398af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/Pages/delivery/DLDriverRegistrationForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ const RegisterDriverForm = () => {
errorMessage =
'licenseCardNumber must be in uppercase and follow the format A000000 .'
}
if (value.length > 7) {
return // Prevent setting values longer than 7 digits
}
}
setFormData((prevData) => ({
...prevData,
Expand Down

0 comments on commit a0398af

Please sign in to comment.