fix warnings parsing part 2 🐛

This commit is contained in:
Jannis R 2018-07-02 16:59:38 +02:00
parent 4bcae146c1
commit 65f3603953
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', // tDate: '20180713',
// tTime: '030000' } ] // tTime: '030000' } ]
const icon = 'number' === typeof h.icoX && icons[w.icoX] || null const icon = 'number' === typeof w.icoX && icons[w.icoX] || null
const type = icon && icon.res && typesByIcon[icon.res] || 'warning' const type = icon && icon.res && typesByIcon[icon.res] || 'warning'
return { return {