Trigger action on one controller makes other controller disappear

I am using and Oculus Quest2 with the hand controllers. I want the trigger pull on one controller to make the other controller disappear until the trigger is released. Any advice on how to get this to work?

You can get the trigger values like this

UnityEngine.XR.InputDevice handRDevice = 
    InputDevices.GetDeviceAtXRNode(XRNode.RightHand);
UnityEngine.XR.InputDevice handLDevice = 
    InputDevices.GetDeviceAtXRNode(XRNode.LeftHand);
handRDevice.TryGetFeatureValue(UnityEngine.XR.CommonUsages.trigger,
    out float triggerR);
handLDevice.TryGetFeatureValue(UnityEngine.XR.CommonUsages.trigger,
    out float triggerL);
//if(triggerR > 0.5f) R trigger pressed
//if(triggerL > 0.5f) L trigger pressed

Then you can do SetActive() on the controller gameObjects, but without code and without a picture of your controller game objects in the inspector you can’t get help with that.