Adding ternary operator to votes condition