Camera becoming stuck after playing a sequence

In UE4.27.2 We have tried to create a code that will let a character press E to hide in a closet and then press again to exit. Upon exiting the player’s view port does not revert to the correct camera. Here is a link to the result 2023 05 05 15 00 33 - YouTube. Below is the code we have used. Any suggestions on how to overcome this are welcome. Many thanks for your time.