Skip to content

Commit 6437366

Browse files
committed
Fixes #87
1 parent 3bb52a9 commit 6437366

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "plant_manager_frontend",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "Frontend for PlantManager",
55
"main": "client.js",
66
"scripts": {

frontend/public/js/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function createPlantCard(plant) {
145145
}
146146
else{
147147
progressbarFill.prop("class", progressbarFill.prop("class") + " bg-water");
148-
let percent = Math.round((plant.days_until_watering / plant.watering_interval_calculated) * 100);
148+
let percent = Math.round((plant.days_until_watering / plant.watering_interval) * 100);
149149
progressbarFill.prop('style','width:' + percent + '%;');
150150
}
151151
progressbarContainer.append(progressbarFill);

0 commit comments

Comments
 (0)