Skip to content

Commit

Permalink
solved PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dottyy committed Jun 7, 2024
1 parent 40b5e6c commit b87faa1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/extensive/Modal/ModalApprove.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const ModalApprove: FC<ModalApproveProps> = ({
<div className="flex items-center">
<When condition={status}>
<Status
status={(status ? status : "draft") as StatusEnum}
status={(status ?? "draft") as StatusEnum}
className="rounded px-2 py-[2px]"
textVariant="text-14-bold"
/>
Expand All @@ -56,9 +56,9 @@ const ModalApprove: FC<ModalApproveProps> = ({
<When condition={!!iconProps}>
<Icon
{...iconProps!}
width={iconProps?.width || 40}
width={iconProps?.width ?? 40}
className={tw("mb-8", iconProps?.className)}
style={{ minHeight: iconProps?.height || iconProps?.width || 40 }}
style={{ minHeight: iconProps?.height ?? iconProps?.width ?? 40 }}
/>
</When>
<div className="flex items-center justify-between">
Expand Down

0 comments on commit b87faa1

Please sign in to comment.