Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

Ashcon Khoubyari
Ashcon Khoubyari
12,907 Points

TypeError: props.toggleConfirmation is not a function

Looking for a solution as the code I've written is identical I believe but when I click "is confirmed" I receive this error

TypeError: props.toggleConfirmation is not a function handleConfirmation src/MainContent/GuestList/index.js:18 15 | name={guest.name} 16 | isConfirmed ={guest.isConfirmed} 17 | isEditing={guest.isEditing}

18 | handleConfirmation={() => props.toggleConfirmation(guest.id)} 19 | handleToggleEditing={() => props.toggleEditing(guest.id)} 20 | setName={text => props.setName(text, guest.id)} 21 | handleRemove={() => props.removeGuest(guest.id)}

let me know how i can better diagnose this issue.

Thank you

Check out how to format code in the "markdown cheat sheet" just below add an answer, please repost you formatted code.