score:0

renderPriceSelection = ownedGames.map((owned_game) => {
  if (owned_game.game_id === game.game_id) {
    return renderOwned
  } else {
    return renderPrice
  }
})

render {renderPriceSelection}

score:0

renderItems(game){

    renderPriceSection = [];

    if (game.category_id === 2) {
     ownedGames.map((owned_game) => {
        if (owned_game.game_id === game.game_id) {
            renderPriceSection.push(renderOwned);
            console.log(owned_game.game_title)
        } else {
            renderPriceSection.push(renderPrice);
        }
      })
   } else {
      renderPriceSection.push(renderFreeToPlayTitle);
  }

}

 ...
 return(
    <ul>
       {renderPriceSection.map((eachPrice) => <li>eachPrice</li>)}
    </ul>
)

Related Query

More Query from same tag