From 99e59baa2b29de742e7751d76b5b1ed9b442eab9 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 22 Jul 2024 12:08:53 -0400 Subject: [PATCH] fix: ensure codes confirmation modal closes on course about page route --- .../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 ( <> { />