From 3710a5a692217c014843c415e9f84a097584a2ed Mon Sep 17 00:00:00 2001 From: AdamCaouetteSafelite Date: Fri, 14 Nov 2025 03:52:09 -0500 Subject: [PATCH] CASH-1757: even more copilot suggestions --- .../quote/afterpay-modal-banner/afterpay-modal-banner.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layouts/quote/afterpay-modal-banner/afterpay-modal-banner.vue b/src/layouts/quote/afterpay-modal-banner/afterpay-modal-banner.vue index a580e1006..0e6cde03d 100644 --- a/src/layouts/quote/afterpay-modal-banner/afterpay-modal-banner.vue +++ b/src/layouts/quote/afterpay-modal-banner/afterpay-modal-banner.vue @@ -97,10 +97,10 @@ export default { getRouterLinkDisplayTextFromCopy, getExternalLink, openModal() { - this.modal.openModal(); + this.modal?.openModal(); }, closeModal() { - this.modal.closeModal(); + this.modal?.closeModal(); }, }, computed: { @@ -133,7 +133,7 @@ export default { }, afterpaySectionsContent() { const sections = this.getCmsContent("AfterpayModalSectionsWidget", "Answers"); - if (!sections) return; + if (!sections) return []; sections.forEach((section) => { const sectionContent = this.getCmsContent(section.Name, "BodyText"); section["content"] = sectionContent;