Skip to content

Commit 9b5f2e7

Browse files
DangDang
authored andcommitted
2 parents 43835f5 + 6199c3e commit 9b5f2e7

File tree

1 file changed

+2
-4
lines changed
  • VehicleShowroom/src/views/admin/order/components

1 file changed

+2
-4
lines changed

VehicleShowroom/src/views/admin/order/components/Columns.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,12 @@ export default function Columns({
6969
const value = Number(row.status);
7070
const isAssigned = !!row.vehicleId;
7171
const isCancelled = value === 4;
72-
const isCompleted = value === 3;
7372

74-
// 🟠 Nếu đơn đã cancel hoặc complete → ẩn hết action
75-
if (isCancelled || isCompleted) {
73+
if (isCancelled) {
7674
return (
7775
<Flex justify="flex-end">
7876
<Text color="gray.400" fontStyle="italic">
79-
{isCancelled ? 'Cancelled' : 'Completed'}
77+
Cancelled
8078
</Text>
8179
</Flex>
8280
);

0 commit comments

Comments
 (0)