diff --git a/resources/js/Customer/Components/HeaderTrx.jsx b/resources/js/Customer/Components/HeaderTrx.jsx index 0464bef..bc4d7ae 100644 --- a/resources/js/Customer/Components/HeaderTrx.jsx +++ b/resources/js/Customer/Components/HeaderTrx.jsx @@ -88,7 +88,7 @@ export default function HeaderTrx({ enable = 'deposit', dates, setDates }) {
{ return ( @@ -49,6 +50,9 @@ export default function Index(props) { useEffect(() => { if (preValue) { + if (isEmpty(dates.endDate)) { + return + } router.get( route(route().current()), { diff --git a/resources/js/Customer/Poin/Index.jsx b/resources/js/Customer/Poin/Index.jsx index 42a9fdb..4382e03 100644 --- a/resources/js/Customer/Poin/Index.jsx +++ b/resources/js/Customer/Poin/Index.jsx @@ -49,6 +49,9 @@ export default function Index(props) { useEffect(() => { if (preValue) { + if (isEmpty(dates.endDate)) { + return + } router.get( route(route().current()), { diff --git a/resources/js/Customer/Trx/Index.jsx b/resources/js/Customer/Trx/Index.jsx index db577b1..721b7fd 100644 --- a/resources/js/Customer/Trx/Index.jsx +++ b/resources/js/Customer/Trx/Index.jsx @@ -52,6 +52,9 @@ export default function Index(props) { useEffect(() => { if (preValue) { + if (isEmpty(dates.endDate)) { + return + } router.get( route(route().current()), {