fleetmap-reports 2.0.297 → 2.0.299

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "2.0.297",
3
+ "version": "2.0.299",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -330,6 +330,9 @@ function getAlertInfo (drivers, alert, device, translations) {
330
330
  if (alert.type === 'alarm' && alert.attributes.alarm === 'sensor') {
331
331
  return device ? device.attributes.sensor1on : ''
332
332
  }
333
+ if (alert.attributes.alarm && alert.attributes.alarm.startsWith('hard')) {
334
+ return ''
335
+ }
333
336
  if (alert.type === 'alarm' && alert.position) {
334
337
  return getDigitalPortValue(alert.position, 1, translations, device.attributes)
335
338
  }