set modal state to false
This commit is contained in:
parent
dcc762d3e4
commit
25c9da1ef2
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,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);
|
||||||
|
|
Loading…
Reference in a new issue