They're both grammatically correct, but based on seems much more fitting than depending here. Also, I don't think dislikes is needed. The dress was bought based on what he liked, not disliked.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.