fix DB hints parsing 🐛

This commit is contained in:
Jannis R 2018-07-13 12:17:15 +02:00
parent c0a04fc74f
commit fe8e68e4a2
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -285,7 +285,7 @@ const parseHint = (profile, h, icons) => {
}
const res = _parseHint(profile, h, icons)
if (h.txtN) {
if (res && h.txtN) {
const text = trim(h.txtN.toLowerCase(), ' ()')
if (codesByText[text]) res.code = codesByText[text]
}