Typo in ternary operator