mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-04-19 19:01:19 +00:00
Fix onchange for discount code
This commit is contained in:
parent
117161e2d5
commit
a08d6a7af3
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user