From 25c9da1ef291dcbc36dfd004ff9ba82be95369b5 Mon Sep 17 00:00:00 2001 From: Ryan Jung Date: Wed, 5 May 2021 18:14:07 -0400 Subject: [PATCH] set modal state to false --- pages/availability/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/availability/index.tsx b/pages/availability/index.tsx index 9369a0b019..baa42db219 100644 --- a/pages/availability/index.tsx +++ b/pages/availability/index.tsx @@ -42,7 +42,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);