CASH-152: fixes to avoid null checks on service package question and quote modals

This commit is contained in:
Adam Caouette 2025-02-26 13:43:14 -05:00
parent 914c187086
commit 127e7b19b5
2 changed files with 2 additions and 2 deletions

View file

@ -135,7 +135,7 @@ export default {
},
closeModal() {
const modal = Modal.getInstance(document.getElementById(this.modalId));
modal.hide();
modal?.hide();
this.$emit("isModalOpened", false);
},
},

View file

@ -56,7 +56,7 @@ export default {
},
unmounted() {
// remove any modal effects before leaving page (e.g. user hits browser back button)
this.modal.closeModal();
this.modal?.closeModal();
},
computed: {
buttonText() {