Skip to content

Commit

Permalink
refactor: 총 금액들 소수점 없이 보여주기
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleysyheo committed Aug 17, 2023
1 parent 8b468fe commit 70ac419
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const ExpenseCategories = ({ tripId }: ExpenseCategoriesProps) => {
총 금액 :{' '}
<span>
{CURRENCY_ICON[DEFAULT_CURRENCY]}
{formatNumberToMoney(selectedCategory.totalAmount)}
{formatNumberToMoney(Number(selectedCategory.totalAmount.toFixed(0)))}
</span>
</Heading>
<Text size="small">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const ExpenseDates = ({ tripId }: ExpenseDatesProps) => {
총 금액 :{' '}
<span>
{CURRENCY_ICON[DEFAULT_CURRENCY]}
{formatNumberToMoney(selectedDayLog.totalAmount)}
{formatNumberToMoney(Number(selectedDayLog.totalAmount.toFixed(0)))}
</span>
</Heading>
<Text size="small">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const TotalExpenseSection = ({ tripId }: TotalExpenseSectionProps) => {
총 경비 :{' '}
<span>
{CURRENCY_ICON[DEFAULT_CURRENCY]}
{formatNumberToMoney(expenseData.totalAmount)}
{formatNumberToMoney(Number(expenseData.totalAmount.toFixed(0)))}
</span>
</Heading>
<Box
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/mocks/data/expense.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const expense: ExpenseData = {
name: '파리',
},
],
totalAmount: 210000,
totalAmount: 210000.01,
categories: [
{
category: {
Expand Down

0 comments on commit 70ac419

Please sign in to comment.