Merge pull request #159 from rymaju/feature/close_modal
Fix bug when dismissing modal on availability page
This commit is contained in:
1 file changed
+1
-1
@@ -38,7 +38,7 @@ export default function Availability(props) {
|
|||||||
setShowChangeTimesModal(!showChangeTimesModal);
|
setShowChangeTimesModal(!showChangeTimesModal);
|
||||||
}
|
}
|
||||||
|
|
||||||
const closeSuccessModal = () => { router.replace(router.asPath); }
|
const closeSuccessModal = () => { setSuccessModalOpen(false); router.replace(router.asPath); }
|
||||||
|
|
||||||
function convertMinsToHrsMins (mins) {
|
function convertMinsToHrsMins (mins) {
|
||||||
let h = Math.floor(mins / 60);
|
let h = Math.floor(mins / 60);
|
||||||
|
|||||||
Reference in new issue
Block a user