fix: error
This commit is contained in:
@@ -243,10 +243,11 @@ export default function NavbarCreateDivisionCalender() {
|
|||||||
setTouched({ ...touched, repeatValue: false })
|
setTouched({ ...touched, repeatValue: false })
|
||||||
}}
|
}}
|
||||||
onBlur={() => setTouched({ ...touched, repeatValue: true })}
|
onBlur={() => setTouched({ ...touched, repeatValue: true })}
|
||||||
|
// TODO :: NANTI DIPERBAIKI
|
||||||
error={
|
error={
|
||||||
touched.repeatValue && (
|
touched.repeatValue && (
|
||||||
isData.repeatValue == "" ? "Jumlah pengulangan tidak boleh kosong" : null ||
|
isData.repeatValue == "" ? "Jumlah pengulangan tidak boleh kosong" : ""
|
||||||
Number(isData.repeatValue) <= 0 ? "Jumlah pengulangan tidak boleh 0" : null
|
// || Number(isData.repeatValue) <= 0 ? "Jumlah pengulangan tidak boleh 0" : ""
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -297,8 +297,8 @@ export default function UpdateDivisionCalender() {
|
|||||||
onBlur={() => setTouched({ ...touched, repeatValue: true })}
|
onBlur={() => setTouched({ ...touched, repeatValue: true })}
|
||||||
error={
|
error={
|
||||||
touched.repeatValue && (
|
touched.repeatValue && (
|
||||||
isDataCalender?.repeatValue == "" ? "Jumlah pengulangan tidak boleh kosong" : null ||
|
isDataCalender?.repeatValue == "" ? "Jumlah pengulangan tidak boleh kosong" : null
|
||||||
Number(isDataCalender?.repeatValue) <= 0 ? "Jumlah pengulangan tidak boleh dibawah 1" : null
|
// || Number(isDataCalender?.repeatValue) <= 0 ? "Jumlah pengulangan tidak boleh dibawah 1" : null
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user