fix(reports): add optional value property to TopCouponItem interface [TASK-26.20]
Some checks failed
Deploy Canina / deploy (push) Failing after 27s
Some checks failed
Deploy Canina / deploy (push) Failing after 27s
This commit is contained in:
parent
053d6f06d8
commit
bac9a02c49
@ -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>
|
||||
))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user