I called an API and it returns a list of results based on different countries. (e.g. the list shows the the market risk premium of different countries)
I want to store the risk premium percentage for a particular country, say USA into my custom state variable.
I have an action to Set State.
But I can’t figure out how I can go through the list and only put the premium for USA into the variable?
This is what i was trying
can someone enlighten me?
Thanks