I feel like there's a better way of doing this, rather than a ternary operator for each one, any suggestions welcome :+1: