We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5a2ad3 commit ca0e3e7Copy full SHA for ca0e3e7
1 file changed
src/components/BMDashboard/Issue/Issue.jsx
@@ -125,7 +125,7 @@ function Issue() {
125
((currentFormData.checkboxes.has('Other') && currentFormData.other.trim().length <= 0) ||
126
(!currentFormData.checkboxes.has('Other') && currentFormData.other.trim().length > 0))
127
) {
128
- toast.error('Tick "Other" checkbox or remove text from "Other" input box.');
+ toast.error('Please specify the other consequence.');
129
return false;
130
}
131
@@ -238,6 +238,7 @@ function Issue() {
238
name="issueDate"
239
id="issueDate"
240
required
241
+ min={new Date('2020-01-01').toISOString().split('T')[0]}
242
max={new Date().toISOString().split('T')[0]}
243
onChange={e => setFormData({ ...formData, issueDate: e.target.value })}
244
/>
0 commit comments