I believe that the liquidtite whip needs to go all the way to the pressure switch. On the long sides of the switch there should be 3/4” knockouts for the flex. It looks like you’ve got the whip ending at the motor/compressor mount bracket and unprotected/exposed THHN then going to the pressure...