Skip to content

Commit

Permalink
fix: 지출 내역 추가 단계에서 값이 0일 경우 레이아웃이 깨지는 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Todari committed Sep 25, 2024
1 parent 6afae59 commit 58fd39f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/components/AmountInput/AmountInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const AmountInput = ({value, onClick, underlined, activated}: Props) => {
`}
onClick={onClick}
>
<Text size="head" textColor={value !== '0' ? 'black' : 'gray'}>
{value}
<Text size="head" textColor={value !== '' && value !== '0' ? 'black' : 'gray'}>
{value === '' ? '0' : value}
</Text>
<Text
textColor="gray"
Expand Down

0 comments on commit 58fd39f

Please sign in to comment.