Skip to content

Commit ca0e3e7

Browse files
committed
fixed changes requested in the PR
1 parent d5a2ad3 commit ca0e3e7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/BMDashboard/Issue/Issue.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function Issue() {
125125
((currentFormData.checkboxes.has('Other') && currentFormData.other.trim().length <= 0) ||
126126
(!currentFormData.checkboxes.has('Other') && currentFormData.other.trim().length > 0))
127127
) {
128-
toast.error('Tick "Other" checkbox or remove text from "Other" input box.');
128+
toast.error('Please specify the other consequence.');
129129
return false;
130130
}
131131

@@ -238,6 +238,7 @@ function Issue() {
238238
name="issueDate"
239239
id="issueDate"
240240
required
241+
min={new Date('2020-01-01').toISOString().split('T')[0]}
241242
max={new Date().toISOString().split('T')[0]}
242243
onChange={e => setFormData({ ...formData, issueDate: e.target.value })}
243244
/>

0 commit comments

Comments
 (0)