Here's a view of a double-apex corner. Which line would you ride?
Here's the correct line you would take for this double-apex corner which is effectively two corners. Stay wide and don't commit to fully turning in until you see the exit. Once in the corner, you'll see the next corner approaching, so this time allow the bike to go to the outside on exit, because that sets you up for the second apex, just like another corner.
A common issue to watch out for is crossing the centre line by turning in too soon on the first part of the corner.