Help w/ if else statement

Hi there.

I could use some help and another set of eyes on this example I’m working on.

I just need to put a conditional toggle in here to hide the other arrow button as it’s interacted with.

Ideally, if the user clicks the up arrow, it disappears and only the down arrow appears …and vice-versa.

Let me know if i’m not making any sense here. Any help in writing this logic is appreciated (i’m really new at this and don’t seem to understand what to do here).