chore: service worker changes, got rid of excessive console logs

This commit is contained in:
2024-04-07 18:54:03 +02:00
parent 28485cc28c
commit d98ec94a66
7 changed files with 8 additions and 12 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ export function locoDataList(vehiclesData: IVehiclesAPI | undefined) {
const locoProps = vehiclesData.vehicleProps.find((prop) => constructionType == prop.type);
if (!locoProps) {
console.warn('No loco props', type);
console.warn('Brak atrybutów dla pojazdu:', type);
return acc;
}
@@ -65,7 +65,7 @@ export function carDataList(vehiclesData: IVehiclesAPI | undefined) {
const wagonProps = vehiclesData.vehicleProps.find((v) => type.toString().startsWith(v.type));
if (!wagonProps) {
console.warn('No wagon props', type);
console.warn('Brak atrybutów dla pojazdu:', type);
return acc;
}