Add paranthesis around a ternary expression to make sure expressions are evaluated correctly client-side.