up
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-07-14 21:17:44 +03:30
parent fa83d7d092
commit 8b9ca1707c
5 changed files with 8 additions and 16 deletions
+2 -2
View File
@@ -96,8 +96,8 @@ const OrderDetails: FC = () => {
// منطق نمایش دکمه‌ها
const isCashPayment = order.paymentMethod?.method === PaymentMethodEnum.Cash
const isCreditCardPayment = order.paymentMethod?.method === PaymentMethodEnum.CreditCard
const isPendingPayment = order.status === OrderStatus.PENDING_PAYMENT
const isOrderPaid = order.status === OrderStatus.PAID
const isPendingPayment = order.status === OrderStatus.NEW
const isOrderPaid = order.payments?.some(payment => payment.status === PaymentStatusEnum.Paid)
const isPreparing = order.status === OrderStatus.PREPARING
const isCanceled = order.status === OrderStatus.CANCELED
const isCompleted = order.status === OrderStatus.COMPLETED