Skip to content

Commit 5399027

Browse files
committed
Bug Fix
1 parent 6a9af3a commit 5399027

File tree

1 file changed

+1
-1
lines changed
  • Sections/Section 3/01-starting-setup/src/components/NewExpense

1 file changed

+1
-1
lines changed

Sections/Section 3/01-starting-setup/src/components/NewExpense/ExpenseForm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const ExpenseForm = (props) => {
4141
event.preventDefault();
4242
const expense = {
4343
title: enteredTitle,
44-
amount: enteredAmount,
44+
amount: +enteredAmount,
4545
date: new Date(enteredDate)
4646
}
4747
props.onSaveExpenseData(expense)

0 commit comments

Comments
 (0)