img src is in array of object, using async await but images do not appear in react app
const [decks, setDecks] = useState(); const [loading, setLoading] = useState(true); function getCardImage(decks){ decks.map(async(deck)=>{ deck.img = await MagicApi.getCardImage(deck.commander); }) return decks; } useEffect(()=>{ const gettingDecks = async (userInfo) => { const res = await UserApi.getDecks(userInfo); const res2 = await getCardImage(res); setDecks(res2); setLoading(false); } gettingDecks({id}) },[]); if(loading) return <div><h3>Fetching Your Commander Decks...</h3></div> console.log(decks) return( <Row> {decks.map(deck =>