diff --git a/pages/availability/index.tsx b/pages/availability/index.tsx index df843edd89..3266459229 100644 --- a/pages/availability/index.tsx +++ b/pages/availability/index.tsx @@ -38,7 +38,7 @@ export default function Availability(props) { setShowChangeTimesModal(!showChangeTimesModal); } - const closeSuccessModal = () => { router.replace(router.asPath); } + const closeSuccessModal = () => { setSuccessModalOpen(false); router.replace(router.asPath); } function convertMinsToHrsMins (mins) { let h = Math.floor(mins / 60);