hotfixy pod 2022.2.2

This commit is contained in:
2023-03-01 23:53:49 +01:00
parent d7341ab047
commit 7627085704
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "pojazdownik",
"version": "1.3.0dev",
"version": "1.3.0",
"private": true,
"scripts": {
"dev": "vite",
+2
View File
@@ -18,6 +18,8 @@ export default defineComponent({
getStockObject(vehicle: Vehicle, cargo?: ICargo | null, count = 1): IStock {
const isLoco = isLocomotive(vehicle);
console.log(vehicle.type);
return {
id: this.getStockId(),
type: vehicle.type,
+1 -1
View File
@@ -81,7 +81,7 @@ export function carDataList(state: IStore) {
}
export function totalMass(state: IStore) {
return state.stockList.reduce(
return ~~state.stockList.reduce(
(acc, stock) => acc + (stock.cargo ? stock.cargo.totalMass : stock.mass) * stock.count,
0
);