From f8e2f5cea667d79601ba456aaeb3c2d2e65d2d8d Mon Sep 17 00:00:00 2001 From: Kenneth Jannette Date: Sat, 23 Mar 2024 03:13:30 -0500 Subject: [PATCH] more --- src/Components/Home/HomePage.js | 2 +- src/Components/Modals/ConfirmModal.js | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/Components/Home/HomePage.js b/src/Components/Home/HomePage.js index 07f097b..5f93f5c 100644 --- a/src/Components/Home/HomePage.js +++ b/src/Components/Home/HomePage.js @@ -456,7 +456,7 @@ const HomePage = () => { {showPromoModal ? ( { const [inputValue, setInputValue] = useState(""); const title = titleText ? titleText : "Confirmation"; - + const handleConfirm = (code) => { + if (!code) { + return; + } + onConfirm(code); + }; return ( @@ -61,7 +66,7 @@ const ConfirmModal = ({ inputValue ? "" : isPromoModal - ? "Enter your promotional code" + ? "Paste or type your code" : "Description of issue" } /> @@ -80,7 +85,7 @@ const ConfirmModal = ({