Merge pull request #159 from rymaju/feature/close_modal

Fix bug when dismissing modal on availability page
pull/175/head
Bailey Pumfleet 2021-05-07 20:43:22 +01:00 committed by GitHub
commit 640ea4031d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);