fleetmap-reports 2.0.297 → 2.0.298

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.298",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -330,7 +330,7 @@ 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.type === 'alarm' && alert.position) {
333
+ if (alert.type === 'alarm' && alert.position && !alert.attributes.alarm.startsWith('hard')) {
334
334
  return getDigitalPortValue(alert.position, 1, translations, device.attributes)
335
335
  }
336
336
  if (alert.type === 'deviceOverspeed') {