Browse Source

update

tags/Baseline_30082024_FRONTEND_UAT
MSI\derek 1 year ago
parent
commit
98bdb1eafb
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/components/EditStaff/StaffInfo.tsx

+ 2
- 2
src/components/EditStaff/StaffInfo.tsx View File

@@ -417,7 +417,7 @@ const StaffInfo: React.FC<Props> = ({ combos }) => {
}}
slotProps={{
textField: {
required: true,
// required: true,
error:
joinDate === "Invalid Date" || Boolean(errors.joinDate),
// value: errors.joinDate?.message,
@@ -466,7 +466,7 @@ const StaffInfo: React.FC<Props> = ({ combos }) => {
}}
slotProps={{
textField: {
error: departDate
error: joinDate && departDate
? new Date(joinDate) > new Date(departDate)
: false,
},


Loading…
Cancel
Save