I'm fetching data from an API and I'm using React and Redux to do so. I am successfully getting data from the API. Here's the console.log with the output:
console.log(this.props.customer.data)

But I can't get it to display in my React app. I bet my problem is really basic, but I really don't understand why this is not working.
I tried doing this inside of return:
{this.props.customer.data.map(customers => <p>{customers.name}</p>)}
But I'm only getting the error: TypeError: Cannot read property 'map' of undefined.
If anyone know why this is happening, please let me know! Thanks!
(I know that I should not have my props in singular, because it represents multiple customers..)
this.props.customer.data?customer.datashould be an array.export function customer(state = [], action)customer.datato an array orcustomerto an array?