How to repeat jump animation for double jump?

When my player double jumps, the jump animation doesn’t play on the second jump. How would I be able to get the jump animation to play again?

This is my code.

I’m also having trouble where the death animation doesn’t play fully when the f key is pressed. It only plays the first frame then goes back to the idle animation. I tried changing the state variable for each animation like what is recommended, but I must be missing something else. I disabled the death animation in my code for now.