Merge pull request #159 from rymaju/feature/close_modal
Fix bug when dismissing modal on availability pagepull/175/head
commit
640ea4031d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue