diff --git a/src/plugins/qmljseditor/qmlhoverhandler.cpp b/src/plugins/qmljseditor/qmlhoverhandler.cpp
index 1ac1094bef77e854a087f073825487b8ed7c482c..79165eafbcc6266ccd32333c0c18515cce8bee39 100644
--- a/src/plugins/qmljseditor/qmlhoverhandler.cpp
+++ b/src/plugins/qmljseditor/qmlhoverhandler.cpp
@@ -245,8 +245,8 @@ QString QmlHoverHandler::prettyPrint(const QmlJS::Interpreter::Value *value, Qml
 
     QString typeId = interp->typeId(value);
 
-    if (typeId.isEmpty() || typeId == QLatin1String("undefined"))
-        typeId = QLatin1String("Unknown");
+    if (typeId == QLatin1String("undefined"))
+        typeId.clear();
 
     return typeId;
 }