mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 18:31:00 +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
|
<InputText
|
||||||
value={discountCode}
|
value={discountCode}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
setDiscountCode(e.target.value);
|
handleDiscountCode(e.target.value);
|
||||||
setDiscountApplied(e.target.value === DISCOUNT_CODE);
|
|
||||||
}}
|
}}
|
||||||
placeholder="Enter discount code"
|
placeholder="Enter discount code"
|
||||||
className="text-sm w-full p-2"
|
className="text-sm w-full p-2"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user