Merge pull request #159 from rymaju/feature/close_modal
Fix bug when dismissing modal on availability page
This commit is contained in:
commit
640ea4031d
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue