I am getting a response from my API and I'm trying to rename a nested object property for an array of objects in my action before I sent it to the reducer. Here is generally what the response looks like:
[ { attributes: { name: "Item 1", price_cents: 1500 } }, { attributes: { name: "Item 2", price_cents: 1000 } }, ... ] and I would like to change price_cents to price. How could I change this before I use it as the payload to the reducer?