diff --git a/pkg/auth/common/login_handler.go b/pkg/auth/common/login_handler.go index 83e320867..432cf1e3b 100644 --- a/pkg/auth/common/login_handler.go +++ b/pkg/auth/common/login_handler.go @@ -354,7 +354,7 @@ func printSuccessMessage(w http.ResponseWriter, orgName string) { } func (h *TanzuLoginHandler) getOrganizationName() (string, error) { - if h.idpType == config.UAAIdpType || h.orgNameGetter != nil { + if h.idpType == config.UAAIdpType || h.orgNameGetter == nil { return "", nil }