diff --git a/components/website/speakers/Schedule/index.jsx b/components/website/speakers/Schedule/index.jsx index 00ce1847..f6ebf67b 100644 --- a/components/website/speakers/Schedule/index.jsx +++ b/components/website/speakers/Schedule/index.jsx @@ -72,7 +72,8 @@ export default function Schedule(props) { (_today.getMonth() + 1) + "/" + _today.getDate(); - const default_date = isAfter(today, min_date) ? today : min_date; + let default_date = isAfter(today, min_date) ? today : min_date; + default_date = isAfter(default_date, max_date) ? min_date : default_date; const [date, updateDate] = useState(default_date); @@ -105,14 +106,14 @@ export default function Schedule(props) { }; return ( -
+
-

+

During this week, you have the opportunity to interact with many recognized speakers, national, international and notorious companies!

-

+

You can get to know them better here.

diff --git a/components/website/utils/Schedule/index.jsx b/components/website/utils/Schedule/index.jsx index b78272fc..9aea27b7 100644 --- a/components/website/utils/Schedule/index.jsx +++ b/components/website/utils/Schedule/index.jsx @@ -99,7 +99,8 @@ export default function Schedule(props) { (_today.getMonth() + 1) + "/" + _today.getDate(); - const default_date = isAfter(today, min_date) ? today : min_date; + let default_date = isAfter(today, min_date) ? today : min_date; + default_date = isAfter(default_date, max_date) ? min_date : default_date; const [date, updateDate] = useState(default_date); const [hash, updateHash] = useState("");