Fix status type check in CheckManagementView
This commit is contained in:
@@ -41,7 +41,7 @@ const allChecksApproved = computed(
|
||||
|
||||
const canFinalApprove = computed(() => {
|
||||
if (!allChecksApproved.value || !order.value) return false
|
||||
const status = order.value.status
|
||||
const status = (displayOrder.value?.rawStatus ?? order.value.status) as string
|
||||
return status === 'checks_approved' || status === 'awaiting_check_review'
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user