Fixed pending state handling in InviteForm component.