diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index c6f5d9e8..5309ddb9 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -7547,7 +7547,7 @@ exports.adjustMeasurement = async (req, reply) => { // Calculate percentage difference const percentageDifference = Math.abs(originalPercentage - calculatedPercentage); let message; - if (percentageDifference > 0) { + if (percentageDifference === originalPercentage) { message = "Tank details and measurement details match."; } else { message = "Please check the tank measurement.";