I have a mapping function that maps an array of cards. When users click on a card, I want to show a modal with that card\'s details. However, my code does not seem to work, it k