From 0e3549a7554181efbea253438dda0f280a6b32cc Mon Sep 17 00:00:00 2001 From: Empire Phoenix Date: Sat, 26 Apr 2025 18:55:59 +0200 Subject: [PATCH] fix comparison in website --- rust/src_webpack/src/plant.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/src_webpack/src/plant.ts b/rust/src_webpack/src/plant.ts index ad611a6..93df81a 100644 --- a/rust/src_webpack/src/plant.ts +++ b/rust/src_webpack/src/plant.ts @@ -139,13 +139,13 @@ export class PlantView { } update(a: number, b: number) { - if (a = 200){ + if (a == 200){ this.moistureA.innerText = "error" } else { this.moistureA.innerText = String(a) } - if (b = 200){ + if (b == 200){ this.moistureB.innerText = "error" } else { this.moistureB.innerText = String(b)