fix(spa): use couponError to fix build warning

This commit is contained in:
Your Name committed 2026-06-06 20:14:43 +07:00
1 parent a1064a027b
commit 7e6c70b82b
1 file changed
+3
+3
View File
@@ -207,6 +207,7 @@ function CartDrawerFooter({ subtotal, onClose, t }: { subtotal: number; onClose:
{/* Coupon Input */} {/* Coupon Input */}
{!savedCoupon && ( {!savedCoupon && (
<div className="flex flex-col gap-1">
<div className="flex gap-2"> <div className="flex gap-2">
<input <input
type="text" type="text"
@@ -223,6 +224,8 @@ function CartDrawerFooter({ subtotal, onClose, t }: { subtotal: number; onClose:
{couponLoading ? '...' : t('cart.applyCoupon', 'Apply')} {couponLoading ? '...' : t('cart.applyCoupon', 'Apply')}
</button> </button>
</div> </div>
{couponError && <span className="text-xs text-rose-500 font-medium">{couponError}</span>}
</div>
)} )}
{/* Totals */} {/* Totals */}