[Question] What kind of bias is this?

What is a kind of bias in which nice things done by a person who is for example always lovely, have less value to us than nice things done by someone who is usually unpleasant? The reverse can also be true, of course.

If this is a specific type of bias do you know of quality research papers describing this phenomenon or this particular situation?