fix: error

This commit is contained in:
amel
2024-09-21 12:12:05 +08:00
parent 9267dfdfe2
commit 581b416420
2 changed files with 5 additions and 4 deletions

View File

@@ -243,10 +243,11 @@ export default function NavbarCreateDivisionCalender() {
setTouched({ ...touched, repeatValue: false })
}}
onBlur={() => setTouched({ ...touched, repeatValue: true })}
// TODO :: NANTI DIPERBAIKI
error={
touched.repeatValue && (
isData.repeatValue == "" ? "Jumlah pengulangan tidak boleh kosong" : null ||
Number(isData.repeatValue) <= 0 ? "Jumlah pengulangan tidak boleh 0" : null
isData.repeatValue == "" ? "Jumlah pengulangan tidak boleh kosong" : ""
// || Number(isData.repeatValue) <= 0 ? "Jumlah pengulangan tidak boleh 0" : ""
)
}
/>

View File

@@ -297,8 +297,8 @@ export default function UpdateDivisionCalender() {
onBlur={() => setTouched({ ...touched, repeatValue: true })}
error={
touched.repeatValue && (
isDataCalender?.repeatValue == "" ? "Jumlah pengulangan tidak boleh kosong" : null ||
Number(isDataCalender?.repeatValue) <= 0 ? "Jumlah pengulangan tidak boleh dibawah 1" : null
isDataCalender?.repeatValue == "" ? "Jumlah pengulangan tidak boleh kosong" : null
// || Number(isDataCalender?.repeatValue) <= 0 ? "Jumlah pengulangan tidak boleh dibawah 1" : null
)
}
/>