From 6d1860b66ca6cfa70311da11a864e1756c3f5d10 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 22 Jul 2024 12:22:51 -0400 Subject: [PATCH] fix: ensure codes confirmation modal closes on course about page route (#1128) --- .../course/enrollment/components/ToEcomBasketPage.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/course/enrollment/components/ToEcomBasketPage.jsx b/src/components/course/enrollment/components/ToEcomBasketPage.jsx index 2759634bf4..d945054cb3 100644 --- a/src/components/course/enrollment/components/ToEcomBasketPage.jsx +++ b/src/components/course/enrollment/components/ToEcomBasketPage.jsx @@ -44,6 +44,10 @@ const ToEcomBasketPage = ({ enrollLabel, enrollmentUrl, courseRunPrice }) => { optimizelyHandler(e); }; + const handleModalClose = () => { + setIsModalOpen(false); + }; + return ( <> { />