fix(reports): add optional value property to TopCouponItem interface [TASK-26.20]
Some checks failed
Deploy Canina / deploy (push) Failing after 27s

This commit is contained in:
parsa aghaei 2026-08-05 15:48:51 +03:30
parent 053d6f06d8
commit bac9a02c49

View File

@ -39,7 +39,8 @@ export interface BestSellerItem {
export interface TopCouponItem {
name: string;
usedCount: number;
usedCount?: number;
value?: number;
}
export interface ReportData {
@ -245,7 +246,7 @@ export default function Reports() {
<span className="font-mono font-bold tracking-widest text-gray-800">{coupon.name}</span>
</div>
<div className="text-gray-600 font-medium">
<span className="font-black text-gray-900 mx-1">{coupon.value}</span>بار استفاده
<span className="font-black text-gray-900 mx-1">{coupon.usedCount ?? coupon.value ?? 0}</span>بار استفاده
</div>
</div>
))