diff --git a/package.json b/package.json index 4b65f5a..11bef04 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "author": "Omid Azad", "main": "src/start.js", "name": "frontend", - "version": "2.2.2", + "version": "2.2.3", "private": false, "dependencies": { "@emotion/react": "^11.11.4", diff --git a/src/dialogs/about.js b/src/dialogs/about.js index d23e3ca..fd3f30a 100644 --- a/src/dialogs/about.js +++ b/src/dialogs/about.js @@ -28,7 +28,7 @@ const About = ({ open, setOpen }) => { SSP Price Calculation Utility{'\n'} created and developed by: Omid Azad{'\n'} Date created: May 5th 2024{'\n'} - Ver 2.2.2 + Ver 2.2.3 diff --git a/src/pages/EntrySection.js b/src/pages/EntrySection.js index 7ebbba2..5e5da7d 100644 --- a/src/pages/EntrySection.js +++ b/src/pages/EntrySection.js @@ -147,12 +147,12 @@ const EntrySection = () => { if (originChandSherkati && !destChandSherkati) { setOriginChandSherkatiPrice(halfOriginPrice); - upgradeDiffValue = destPrice - (originPrice + originChandSherkatiPrice); + upgradeDiffValue = Number(destPrice) - (Number(originPrice) + Number(originChandSherkatiPrice)); await setUpgradeDifference(upgradeDiffValue); } else if (destChandSherkati && !originChandSherkati) { setDestChandSherkatiPrice(halfDestPrice); - upgradeDiffValue = (destChandSherkatiPrice + destPrice) - originPrice; + upgradeDiffValue = (Number(destChandSherkatiPrice) + Number(destPrice)) - Number(originPrice); await setUpgradeDifference(upgradeDiffValue); } else if (originChandSherkati && destChandSherkati) { @@ -164,7 +164,7 @@ const EntrySection = () => { } else { setOriginChandSherkatiPrice(0); setDestChandSherkatiPrice(0); - upgradeDiffValue = destPrice - originPrice; + upgradeDiffValue = Number(destPrice) - Number(originPrice); await setUpgradeDifference(upgradeDiffValue); }