How does the sentence end?

While trying to maintain a healthy diet Jim decided to eat bananas but ignored apples because the
apples were less preferred.