mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-23 16:05:24 +00:00
fix onchange for course discount code
This commit is contained in:
parent
8e68214972
commit
77337b8019
@ -130,7 +130,10 @@ const CoursePaymentButton = ({ lnAddress, amount, onSuccess, onError, courseId }
|
||||
<div className="relative flex-1">
|
||||
<InputText
|
||||
value={discountCode}
|
||||
onChange={(e) => handleDiscountCode(e.target.value)}
|
||||
onChange={(e) => {
|
||||
setDiscountCode(e.target.value);
|
||||
setDiscountApplied(e.target.value === DISCOUNT_CODE);
|
||||
}}
|
||||
placeholder="Enter discount code"
|
||||
className="text-sm w-full p-2"
|
||||
/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user