Proper fix for unknown steering wheel position
This commit is contained in:
parent
196c287124
commit
d8fc7d81b7
@ -1,5 +1,4 @@
|
||||
const Constants = require('../data_providers/constants');
|
||||
const Event = require('./event');
|
||||
|
||||
class Vehicle {
|
||||
brand
|
||||
@ -48,7 +47,13 @@ class Vehicle {
|
||||
url: p.uri
|
||||
};
|
||||
});
|
||||
v.isRightWheel = tech?.wheel?.position == 'RIGHT';
|
||||
|
||||
if(tech?.wheel?.position) {
|
||||
v.isRightWheel = tech?.wheel?.position == 'RIGHT';
|
||||
} else {
|
||||
v.isRightWheel = null;
|
||||
}
|
||||
|
||||
v.isJapanese = report.is_japanese_vehicle;
|
||||
v.addedDate = Date.now();
|
||||
v.events = [];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user