Skip to content

Commit

Permalink
FIXED: broken test in App.test.js && removed console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-vaibh committed Dec 24, 2023
1 parent 98d1321 commit 880d4c2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/App.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import App from './App';

test('renders learn react link', () => {
render(<App />);
const linkElement = screen.getByText(/learn react/i);
const linkElement = screen.getByText(/Instructions/i);
expect(linkElement).toBeInTheDocument();
});
1 change: 0 additions & 1 deletion src/components/People.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default function People({ people, setPeople, eachAmount }) {
const handleOpen = useCallback((id) => {
const item = people.filter(item => item.id === parseInt(id) + 1)[0];

console.log(item);
setModalData(item);
setOpen(true);
}, [people, setModalData, setOpen]);
Expand Down
2 changes: 0 additions & 2 deletions src/components/PeopleModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ export default function PeopleModal({ people, eachAmount, modalData, setModalDat

const handlePay = () => {
if (parseFloat(paidValue)) {
console.log(modalData)
let newModalDataObject = { ...modalData };
console.log(newModalDataObject)
newModalDataObject.paid += parseFloat(paidValue);

setModalData(newModalDataObject);
Expand Down

0 comments on commit 880d4c2

Please sign in to comment.