How to only be able to walljump on the same wall once?

I was making a wallrun/jump script in my jumping script and i realized that you can wall jump on the same wall forever. is there a known fix for this?

My Project: PlayCanvas 3D HTML5 Game Engine

Script: Scripts/player/movement/jump.js