We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 43835f5 + 6199c3e commit 9b5f2e7Copy full SHA for 9b5f2e7
VehicleShowroom/src/views/admin/order/components/Columns.js
@@ -69,14 +69,12 @@ export default function Columns({
69
const value = Number(row.status);
70
const isAssigned = !!row.vehicleId;
71
const isCancelled = value === 4;
72
- const isCompleted = value === 3;
73
74
- // 🟠 Nếu đơn đã cancel hoặc complete → ẩn hết action
75
- if (isCancelled || isCompleted) {
+ if (isCancelled) {
76
return (
77
<Flex justify="flex-end">
78
<Text color="gray.400" fontStyle="italic">
79
- {isCancelled ? 'Cancelled' : 'Completed'}
+ Cancelled
80
</Text>
81
</Flex>
82
);
0 commit comments