diff options
author | Rosyid Haryadi <rosyid_haryadi@protonmail.com> | 2023-10-01 14:34:37 +0700 |
---|---|---|
committer | Rosyid Haryadi <rosyid_haryadi@protonmail.com> | 2023-10-01 14:34:37 +0700 |
commit | 2d1a0042f74a6fe85aa5e408eb1dd3066efbaf72 (patch) | |
tree | ea309a64bef46bc9882adcc646318d8151a2ed19 /src/Result.jsx | |
parent | a4f1b82242b37cc96047d41af04f9f689a8232bd (diff) |
upd: minTime maxTime makes it annoying to input, invalid time handled in result instead
Diffstat (limited to 'src/Result.jsx')
-rw-r--r-- | src/Result.jsx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Result.jsx b/src/Result.jsx index dd977c5..3ba9a4e 100644 --- a/src/Result.jsx +++ b/src/Result.jsx @@ -9,6 +9,16 @@ function Result({listEntry, baseSalary}) { setTotalOvertimePay(getOvertimePayTotal(listEntry, baseSalary)); }, [listEntry, baseSalary]); + if (totalOvertimePay < 0) { + return ( + <Container> + <Typography variant='h5'> + Waktu selesai mendahului waktu mulai. Mohon diperbaiki input. + </Typography> + </Container> + ) + } + return ( <Container> <Typography variant='h5'> |