fix warnings parsing 🐛

This commit is contained in:
Jannis R 2018-07-02 16:55:39 +02:00
parent 2f40c20175
commit 4bcae146c1
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -24,7 +24,7 @@ const parseWarning = (profile, w, icons) => {
// tDate: '20180713',
// tTime: '030000' } ]
const icon = 'number' === typeof h.icoX && icons[h.icoX] || null
const icon = 'number' === typeof h.icoX && icons[w.icoX] || null
const type = icon && icon.res && typesByIcon[icon.res] || 'warning'
return {