From 182e26739bcd063175f9d87b310d45599e589b36 Mon Sep 17 00:00:00 2001 From: imkarimkarim Date: Sat, 21 Aug 2021 13:27:48 +0430 Subject: [PATCH] after release bug fix --- package.json | 6 ++--- src/App/Components/Car/CarProductInput.jsx | 8 +++---- src/App/Components/Product/Cheat.jsx | 8 +++---- src/App/Reducers/EditCarReducer.jsx | 26 ++++++++++----------- src/App/Reducers/EditFactorReducer.jsx | 22 ++++++++--------- src/App/Reducers/EditProductReducer.jsx | 16 ++++++------- src/App/Reducers/IncludeCarReducer.jsx | 14 +++++------ src/App/Reducers/NewFactorReducer.jsx | 22 ++++++++--------- src/App/Reducers/NewProductOwnerReducer.jsx | 4 ++-- src/App/utils.js | 4 ++-- 10 files changed, 65 insertions(+), 65 deletions(-) diff --git a/package.json b/package.json index 25e7f8d..8401ae9 100755 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "goje", "productName": "goje", - "version": "1.2.4", - "description": "My Electron application description", + "version": "1.4.1", + "description": "a Electron cross-platform desktop app for fruit stores", "main": ".webpack/main", "scripts": { "start": "electron-forge start", @@ -16,7 +16,7 @@ }, "keywords": [], "author": { - "name": "alirezainjast", + "name": "imkarimkarim", "email": "allalirezamail@gmail.com" }, "license": "MIT", diff --git a/src/App/Components/Car/CarProductInput.jsx b/src/App/Components/Car/CarProductInput.jsx index dea2eec..b7e9602 100644 --- a/src/App/Components/Car/CarProductInput.jsx +++ b/src/App/Components/Car/CarProductInput.jsx @@ -6,7 +6,7 @@ import TextField from "@material-ui/core/TextField"; import Input from "../Input.jsx"; import ExpenseInput from "../ExpenseInput.jsx"; import "./CarProductInput.css"; -import { convertToIntIfIsNumber } from "../../utils"; +import { convertToFloatIfIsNumber } from "../../utils"; // TODO: also up/down with arrow keys @@ -56,7 +56,7 @@ const CarProductInput = React.memo(({ formDispatch }) => { fun={(e) => { setState({ ...state, - amount: convertToIntIfIsNumber(e.target.value), + amount: convertToFloatIfIsNumber(e.target.value), }); }} /> @@ -66,7 +66,7 @@ const CarProductInput = React.memo(({ formDispatch }) => { fun={(e) => { setState({ ...state, - weight: convertToIntIfIsNumber(e.target.value), + weight: convertToFloatIfIsNumber(e.target.value), }); }} /> @@ -74,7 +74,7 @@ const CarProductInput = React.memo(({ formDispatch }) => { value={state.price} label="فی حدودی" fun={(e) => { - setState({ ...state, price: convertToIntIfIsNumber(e.target.value) }); + setState({ ...state, price: convertToFloatIfIsNumber(e.target.value) }); }} />