Fix onchange for discount code

This commit is contained in:
austinkelsay 2024-12-23 15:06:30 -06:00
parent 117161e2d5
commit a08d6a7af3
No known key found for this signature in database
GPG Key ID: 44CB4EC6D9F2FA02

View File

@ -150,8 +150,7 @@ const CoursePaymentButton = ({ lnAddress, amount, onSuccess, onError, courseId }
<InputText
value={discountCode}
onChange={(e) => {
setDiscountCode(e.target.value);
setDiscountApplied(e.target.value === DISCOUNT_CODE);
handleDiscountCode(e.target.value);
}}
placeholder="Enter discount code"
className="text-sm w-full p-2"