change status order rate

This commit is contained in:
hamid zarghami
2025-12-25 10:22:19 +03:30
parent f532a1514f
commit 91b5a61fbd
2 changed files with 4 additions and 8 deletions
+2 -1
View File
@@ -12,6 +12,7 @@ import React, { useMemo, useState } from 'react'
import { useTranslation } from 'react-i18next';
import { useGetOrders } from './hooks/useHistoryData';
import { HistoryOrderItem } from './types/Types';
import { OrderStatus } from './enum/Enum';
const fallbackImage = '/assets/images/food-preview.png';
@@ -183,7 +184,7 @@ function OrdersIndex() {
</span>
</div>
</div>
{order.status === 'delivered' && (
{order.status === OrderStatus.COMPLETED && (
<Link href={`rate/${order.id}?foodId=${item.food.id}`}>
<Button className='text-xs px-3 py-2 h-auto'>{t('Card.Rate')}</Button>
</Link>