delete one equal sign from ternary operator to make code work