Ad
  • Custom User Avatar

    Agree.
    Remove the else and just return the else value, since the if condition returns if hit.

    Also, pairing an arrow function with a ternary will allow you to return the value directly and keep it even more concise