Skip to content

Commit

Permalink
fix: ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
FinleyGe committed Feb 26, 2025
1 parent 7b789d6 commit 96cab47
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/workorder/detail/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import AppStatusTag from '@/components/AppStatusTag';
import MyIcon from '@/components/Icon';
import { useConfirm } from '@/hooks/useConfirm';
import { useToast } from '@/hooks/useToast';
import { useGlobalStore } from '@/store/global';
import { WorkOrderDB, WorkOrderStatus } from '@/types/workorder';
import { Box, Button, Flex } from '@chakra-ui/react';
import { useTranslation } from 'next-i18next';
Expand Down Expand Up @@ -94,7 +93,7 @@ const Header = ({
</Button>
</Box>
)}
{app.status !== WorkOrderStatus.Completed && app.status !== WorkOrderStatus.Deleted && (
{app?.status !== WorkOrderStatus.Completed && app?.status !== WorkOrderStatus.Deleted && (
<Button
_focusVisible={{ boxShadow: '' }}
mr={5}
Expand Down

0 comments on commit 96cab47

Please sign in to comment.