Move setGatewayState + rerender calls inside act() blocks and make the synchronous soft-switch test async so all state updates are wrapped. Eliminates the last 4 act() warnings (44 → 0).
Move setGatewayState + rerender calls inside act() blocks and make the synchronous soft-switch test async so all state updates are wrapped. Eliminates the last 4 act() warnings (44 → 0).