fix: update approval status logic in vessel registration steps

This commit is contained in:
fitse-yotor
2026-07-28 13:04:11 +03:00
parent c4af36005c
commit 4c01c5321b

View File

@@ -277,7 +277,7 @@ export function VesselRegistrationPage() {
{[ {[
{ label: 'Submitted', done: true }, { label: 'Submitted', done: true },
{ label: 'Under Review', done: registration.status !== 'Pending' }, { label: 'Under Review', done: registration.status !== 'Pending' },
{ label: 'Approved', done: registration.status === 'Approved' }, { label: 'Approved', done: false },
].map((step) => ( ].map((step) => (
<Group key={step.label} gap="xs"> <Group key={step.label} gap="xs">
<ThemeIcon size={20} radius="xl" color={step.done ? 'teal' : 'gray'} variant={step.done ? 'filled' : 'light'}> <ThemeIcon size={20} radius="xl" color={step.done ? 'teal' : 'gray'} variant={step.done ? 'filled' : 'light'}>